mirror of
https://github.com/apple/swift-http-types
synced 2026-11-22 04:30:40 +00:00
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:
1 parent
f14fbc0e56
commit
b8fbf4109e
1 file changed
+10
@@ -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
|
||||
|
||||
Reference in new issue
Block a user