TraceContext.Draw.feed: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 1335-1343 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=1335&end_line=1343 import Base # Feed the next source word, or the source's error, to the trace ID draw or # the span ID draw that the generation runs. A source error ends the draw, # and so the generation, at once with SourceFailure (law feed_failure). def Draw.feed(word: Result<&1, &1, U32 & String, U32>, draw: Draw) -> Step: match draw: case DrawTrace{trace, sampled}: Step.of_trace(TraceDraw.next(word, trace), sampled) case DrawSpan{span, trace_id, sampled}: Step.of_span(SpanDraw.next(word, span), trace_id, sampled) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 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=SpanDraw.next 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=Step.of_span https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Step.of_trace https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=TraceDraw.next