traceflags
Traceflags are a small set of boolean switches encoded as bits that accompany a trace context in distributed tracing systems. They indicate optional or future-oriented behavior related to tracing, most commonly the sampling decision for a trace.
In the W3C Trace Context specification and its common implementations (including OpenTelemetry and many language SDKs),
Operation and semantics: The trace flags are propagated across process boundaries via the traceparent header or
Other uses and distinctions: In other domains, the term trace flag can refer to different mechanisms. For
See also: W3C Trace Context, OpenTelemetry, distributed tracing, SQL Server trace flags.