Expand description
Events reprensenting units of code execution
Structs§
- Begin
Async DynNamed Span Event - Begin
Async Named Span Event - Begin
Async Span Event - Begin
Thread DynNamed Span Event - Begin
Thread Named Span Event - Begin
Thread Span Event - DynSpan
Name - A span name built at runtime. It is copied into the block that records each event.
- EndAsync
DynNamed Span Event - EndAsync
Named Span Event - EndAsync
Span Event - EndThread
DynNamed Span Event - EndThread
Named Span Event - EndThread
Span Event - Entry
Properties - The end hook of a future whose properties were computed when it was created.
- Instrumented
Future - A wrapper that instruments a future with async span tracing
- Instrumented
Named Future - A wrapper that instruments a future with named async span tracing
- NoHook
- The end hook of a future that carries no properties: its span ends plainly.
- Span
Context Future - A future wrapper that establishes a span context on every poll.
- Span
Location - Span
Location Record - Span
Metadata - Span
Properties - Properties a span carries until its end event. Values are copied in, so they only need to outlive the call that sets them.
- Span
Record - Static
Span Name - A
&'static strname. It is a lifetime-free wrapper because a trait implemented only for&'static strmakes rustc rejectSendfutures that await an instrumented future (“implementation is not general enough”). - Tagged
EndAsync Named Span Event - Tagged
EndAsync Span Event - Tagged
EndThread Named Span Event - The name is always a block-scoped string record, whether it was
'staticor built at runtime. - Tagged
EndThread Span Event - Thread
Deps Queue - Thread
Event Queue
Enums§
Traits§
- Instrument
Future - Trait for adding instrumentation to futures
- Span
EndHook - Runs when an instrumented future completes, to add properties to the span’s end event from the future’s output.
- Span
Name - Thread
Deps Queue Type Index - Thread
Event Queue Type Index
Functions§
- current_
span_ id - Returns the current span ID from the async call stack. Returns 0 (root) if no span is active.
- spawn_
with_ context - Spawns a future on the tokio runtime while preserving the current span context.