def Context.root_from_ids

bend-trace-context@0.2.0.0 · trace_context.bend:714

import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import Base

714# Start a trace with supplied IDs and the sampled indication that the caller
715# decided, kept as it is given (spec #41, "Sampling decision when starting a
716# trace"; law root). False gives an unsampled root, the default of spec #1,
717# "New roots default to sampled `0`", which Context.continue_or_start_with
718# applies itself. generation.bend provides Context.root, Context.child and
719# Context.restart for generated IDs.
720def Context.root_from_ids(trace_id: TraceId, span_id: SpanId, sampled: Bool) -> LocalContext:
721  Context.from_ids(trace_id, span_id, sampled)

Uses (5)

Used by (1)