TracingContextExt

Trait TracingContextExt 

Source
pub trait TracingContextExt {
    // Required methods
    fn set_context(&self, context: DatadogContext);
    fn get_context(&self) -> DatadogContext;
}
Expand description

Extension trait for tracing::Span that allows extracting/injecting DatadogContext.

For other types see TraceContextExt.

Required Methods§

Source

fn set_context(&self, context: DatadogContext)

Sets the distributed trace context on the tracing span.

Source

fn get_context(&self) -> DatadogContext

Gets the distributed trace context from the tracing span.

Implementations on Foreign Types§

Source§

impl TracingContextExt for Span

Implementors§