Added known HTTP header field names from W3C Trace Context (#124)

these headers are defined by [W3C Trace
Context](https://www.w3.org/TR/trace-context/) and are used by
OpenTelemetry and other distributed tracing systems.

resolves #101.

Co-authored-by: Guoye Zhang <guoye_zhang@apple.com>
This commit is contained in:
shydevandGuoye Zhang authored and GitHub committed 2026-06-01 19:08:54 +00:00
1 parent f14fbc0e56
commit b8fbf4109e
1 file changed
+10
+10
View File
@@ -528,6 +528,16 @@ extension HTTPField.Name {
/// https://www.rfc-editor.org/rfc/rfc9110.html
public static var te: Self { .init(rawName: "TE", canonicalName: "te") }
/// Traceparent
///
/// https://www.w3.org/TR/trace-context/
public static var traceparent: Self { .init(rawName: "Traceparent", canonicalName: "traceparent") }
/// Tracestate
///
/// https://www.w3.org/TR/trace-context/
public static var tracestate: Self { .init(rawName: "Tracestate", canonicalName: "tracestate") }
/// Trailer
///
/// https://www.rfc-editor.org/rfc/rfc9110.html