Enum tracing_distributed::TraceCtxError [−][src]
#[non_exhaustive]
pub enum TraceCtxError {
TelemetryLayerNotRegistered,
RegistrySubscriberNotRegistered,
NoEnabledSpan,
NoParentNodeHasTraceCtx,
}
Expand description
Errors that can occur while registering the current span as a distributed trace root or attempting to retrieve the current trace context.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
TelemetryLayerNotRegistered
Expected a TelemetryLayer
to be registered as a subscriber associated with the current Span.
RegistrySubscriberNotRegistered
Expected a tracing_subscriber::Registry
to be registered as a subscriber associated with the current Span.
NoEnabledSpan
Expected the span returned by tracing::Span::current()
to be enabled, with an associated subscriber.
NoParentNodeHasTraceCtx
Attempted to evaluate the current distributed trace context but none was found. If this occurs, you should check to make sure that register_dist_tracing_root
is called in some parent of the current span.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TraceCtxError
impl Send for TraceCtxError
impl Sync for TraceCtxError
impl Unpin for TraceCtxError
impl UnwindSafe for TraceCtxError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more