def BaseContext.parent

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

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

3140# The base as the parent of a child operation: a received context or an
3141# operation of this participant.
3142def BaseContext.parent(base: BaseContext) -> Parent:
3143  match base:
3144    case IncomingBase{incoming}:
3145      IncomingContext.parent(incoming)
3146    case OutgoingBase{outgoing}:
3147      LocalParent{OutgoingContext.context(outgoing)}

Uses (4)

Used by (1)