def SpanId.generate

bend-trace-context@0.2.0.0 · generation.bend:45

import bend-trace-context@0.2.0.0/generation.bend as Generation
import Base
import bend-trace-context@0.2.0.0/trace_context.bend as TC

45# A span ID alone, as an SDK generates one once its sampler has decided, or
46# for a child span with its parent's span ID excluded
47# (TC.SpanId.generate_with).
48def SpanId.generate(excluded: Maybe<&2, TC.SpanId>) -> IO(Result<&2, &2, TC.GenerationError, TC.SpanId>):
49  on_host(Result<&2, &2, TC.GenerationError, TC.SpanId>,
50    TC.SpanId.generate_with(~Unit, ~Source.host, Unit{}, excluded))

Uses (9)

Used by (0)

No other definition uses this definition.