type StateOutcome

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

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

2669# What extraction did with the tracestate fields of a message:
2670#   StateAbsent{}            there was no tracestate field
2671#   StateAccepted{}          the fields were read into the incoming state,
2672#                            which may be empty
2673#   StateDiscarded{error}    the fields were refused as a whole; the incoming
2674#                            context has no state and the traceparent stays
2675#                            accepted
2676#   StateIgnored{}           the fields were not read, because the message has
2677#                            no accepted traceparent (W3C 3.3)
2678type StateOutcome is Data:
2679  StateAbsent{}
2680  StateAccepted{}
2681  StateDiscarded{error: StateError}
2682  StateIgnored{}

Uses (1)

Used by (6)