def Context.restart

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

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

66# Start a new trace instead of continuing a received context, with the
67# sampled indication `sampled`, as a root takes it.
68def Context.restart(previous: TC.RemoteContext, sampled: Bool) ->
69  IO(Result<&2, &2, TC.GenerationError, TC.LocalContext>):
70  on_host(Result<&2, &2, TC.GenerationError, TC.LocalContext>,
71    TC.Context.restart_with(~Unit, ~Source.host, Unit{}, previous, sampled))

Uses (10)

Used by (0)

No other definition uses this definition.