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§
Sourcefn set_context(&self, context: DatadogContext)
fn set_context(&self, context: DatadogContext)
Sets the distributed trace context on the tracing span.
Sourcefn get_context(&self) -> DatadogContext
fn get_context(&self) -> DatadogContext
Gets the distributed trace context from the tracing span.