def SpanPlan.child

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

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

1280# The plan of a child's span ID: the parent's span ID excluded, the parent's
1281# trace ID, and the sampled indication that `sampling` resolves from the
1282# parent's.
1283def SpanPlan.child(+parent: Parent, sampling: Sampling) -> SpanPlan:
1284  SpanPlan{Some{Parent.span_id(parent)}, Parent.trace_id(parent), Sampling.resolve(sampling, Parent.is_sampled(parent))}

Uses (8)

Used by (2)