def Serve.from_child

bend-trace-context@0.2.0.0 · trace_context.bend:3508

import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import Base

3508# The service that a child of the kept context gives, with `state`, or
3509# Untraced with the error.
3510def Serve.from_child(state: TraceState, received: Maybe<&2, IncomingContext>,
3511  result: Result<&2, &2, GenerationError, LocalContext>) -> Service:
3512  match result:
3513    case Fail{error}:
3514      Untraced{error, received}
3515    case Done{context}:
3516      Operating{Continued{}, OutgoingContext.with_state(context, state), received}

Uses (9)

Used by (1)