Module spans

Module spans 

Source
Expand description

Events reprensenting units of code execution

Structs§

BeginAsyncNamedSpanEvent
BeginAsyncSpanEvent
BeginThreadNamedSpanEvent
BeginThreadSpanEvent
EndAsyncNamedSpanEvent
EndAsyncSpanEvent
EndThreadNamedSpanEvent
EndThreadSpanEvent
InstrumentedFuture
A wrapper that instruments a future with async span tracing
InstrumentedNamedFuture
A wrapper that instruments a future with named async span tracing
SpanContextFuture
A future wrapper that establishes a span context on every poll.
SpanLocation
SpanLocationRecord
SpanMetadata
SpanRecord
ThreadDepsQueue
ThreadEventQueue

Enums§

ThreadDepsQueueAny
ThreadEventQueueAny

Traits§

InstrumentFuture
Trait for adding instrumentation to futures
ThreadDepsQueueTypeIndex
ThreadEventQueueTypeIndex

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.

Type Aliases§

ThreadBlock
ThreadStream