Function eaze_tracing_distributed::current_dist_trace_ctx[][src]

pub fn current_dist_trace_ctx<SpanId, TraceId>(
) -> Result<(TraceId, SpanId), TraceCtxError> where
    SpanId: 'static + Clone + Send + Sync,
    TraceId: 'static + Clone + Send + Sync

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.