Generation.Context.root: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/generation.bend as Generation Lines 52-59 of bend-trace-context@0.2.0.0/generation.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/generation.bend&start_line=52&end_line=59 import Base import bend-trace-context@0.2.0.0/trace_context.bend as TC # Start a trace: a trace ID, then a span ID, as TC.Context.root_with composes # them, with the sampled indication `sampled`, as it is given. The trace ID # asserts random-trace-id, so the root is emitted with flags 03 when it is # sampled and 02 when it is not: False gives an unsampled root, as # Context.continue_or_start starts one by default. def Context.root(sampled: Bool) -> IO(Result<&2, &2, TC.GenerationError, TC.LocalContext>): on_host(Result<&2, &2, TC.GenerationError, TC.LocalContext>, TC.Context.root_with(~Unit, ~Source.host, Unit{}, sampled)) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/generation.bend&name=Source.host https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/generation.bend&name=on_host https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Context.root_with https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=GenerationError https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=LocalContext