def Context.clear
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
3259# Remove every traceparent and tracestate field, whatever the case of its
3260# name, and keep the other fields in their order: the carrier of a message
3261# sent without context (spec #1, "Provide explicit context-field cleanup for
3262# the no-context path"). Law: clear_carrier.
3263def Context.clear(carrier: List<&2, Header>) -> List<&2, Header>:
3264 Carrier.replace(carrier, Nil{})