def Context.child_from_id
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
732# Continue the parent's trace with a new operation identified by a supplied
733# span ID. The child keeps the trace ID and its randomness assertion, and its
734# span ID must differ from the parent's (ReusedSpanId otherwise). Sampling is
735# inherited unless set. Laws: child, child_reuse and child_accepts.
736def Context.child_from_id(+parent: Parent, +span_id: SpanId, sampling: Sampling) ->
737 Result<&2, &2, ContextError, LocalContext>:
738 Context.child_from_id.checked(Parent.trace_id(parent), span_id,
739 Sampling.resolve(sampling, Parent.is_sampled(parent)),
740 SpanId.is_eq(span_id, Parent.span_id(parent)))
Uses (12)
Used by (0)
No other definition uses this definition.