tracing_honeycomb

Function current_dist_trace_ctx

Source
pub fn current_dist_trace_ctx() -> Result<(TraceId, SpanId), TraceCtxError>
Expand description

Retrieve the distributed trace context associated with the current span.

Returns the TraceId, if any, that the current span is associated with along with the SpanId belonging to the current span.

Specialized to the honeycomb.io-specific SpanId and TraceId provided by this crate.