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 - 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
- Span
Context Future - A future wrapper that establishes a span context on every poll.
- Span
Location - Span
Location Record - Span
Metadata - 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”). - Thread
Deps Queue - Thread
Event Queue
Enums§
Traits§
- Instrument
Future - Trait for adding instrumentation to futures
- 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.