TraceContext.Context.child_from_id: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 732-740 of bend-trace-context@0.2.0.0/trace_context.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&start_line=732&end_line=740 import Base # Continue the parent's trace with a new operation identified by a supplied # span ID. The child keeps the trace ID and its randomness assertion, and its # span ID must differ from the parent's (ReusedSpanId otherwise). Sampling is # inherited unless set. Laws: child, child_reuse and child_accepts. def Context.child_from_id(+parent: Parent, +span_id: SpanId, sampling: Sampling) -> Result<&2, &2, ContextError, LocalContext>: Context.child_from_id.checked(Parent.trace_id(parent), span_id, Sampling.resolve(sampling, Parent.is_sampled(parent)), SpanId.is_eq(span_id, Parent.span_id(parent))) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Context.child_from_id.checked https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=ContextError https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=LocalContext https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Parent https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Parent.is_sampled https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Parent.span_id https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Parent.trace_id https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Sampling https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Sampling.resolve https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=SpanId https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=SpanId.is_eq