TraceContext.Step.of_trace: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 1292-1303 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=1292&end_line=1303 import Base # The generation that a trace ID draw's step gives, for a root or a restart # with the sampled indication `sampled`: waiting for the draw's next word, # the root's span ID draw once the trace ID is drawn (SpanPlan.root), or the # draw's failure. def Step.of_trace(step: TraceStep, sampled: Bool) -> Step: match step: case NeedTraceWord{draw}: NeedWord{DrawTrace{draw, sampled}} case DrawnTraceId{id}: SpanPlan.draw(SpanPlan.root(id, sampled)) case TraceFailed{error}: Failed{error} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Draw https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=SpanPlan.draw https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=SpanPlan.root https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Step https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=TraceStep