Skip to main content

resolve

Function resolve 

Source
pub fn resolve(run_id: &str, incoming: Option<&str>) -> TraceContext
Expand description

Resolve the trace context for a run: continue an upstream traceparent if a valid one is supplied (same trace id, fresh span), else mint a fresh trace deterministically from the run id (so retries of a run share a trace id).