type ForwardError
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
3312# Why a received context could not be forwarded unchanged:
3313# NothingToForward{} it keeps no received pair: its tracestate was
3314# discarded when it was extracted, or it was
3315# built from parts (IncomingContext.from_remote)
3316# ForwardTooLarge{} its tracestate fields, joined by commas,
3317# exceed the tracestate output budget
3318# InvalidForwardParent{error} its traceparent value is not one that
3319# TraceParent.read accepts
3320# InvalidForwardState{error} its tracestate fields are not ones that
3321# TraceState.parse_fields accepts
3322# A pair that extraction keeps always passes the last two checks (law
3323# forward_extracted); they refuse a pair built directly.
3324type ForwardError is Data:
3325 NothingToForward{}
3326 ForwardTooLarge{}
3327 InvalidForwardParent{error: TraceParentError}
3328 InvalidForwardState{error: StateError}