You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recommend custom header "otcorrelations" over w3c correlation-context (#517)
* Change w3c correlation context to custom header
* use set-cookie format
* rename header to otbaggage
* update to header name in poll
* fix indentation level
* fix links
@@ -29,8 +30,6 @@ The Correlations API consists of:
29
30
`CorrelationContext` is used to annotate telemetry, adding context and information to metrics, traces, and logs.
30
31
It is an abstract data type represented by a set of name/value pairs describing user-defined properties.
31
32
Each name in `CorrelationContext` MUST be associated with exactly one value.
32
-
`CorrelationContext` MUST be serialized according to the editor's draft of the [W3C Correlation Context](https://w3c.github.io/correlation-context/)
33
-
specification.
34
33
35
34
### Get correlations
36
35
@@ -102,6 +101,37 @@ OPTIONAL parameters:
102
101
`CorrelationContext` MAY be propagated across process boundaries or across any arbitrary boundaries
103
102
(process, $OTHER_BOUNDARY1, $OTHER_BOUNDARY2, etc) for various reasons.
104
103
104
+
### Serialization
105
+
106
+
Until the [W3C Correlation Context](https://w3c.github.io/correlation-context/) specification is recommended for use, OpenTelemetry `CorrelationContext` implementations MUST be serialized according to the [editor's draft of W3C Correlation Context as of March 27, 2020](https://github.com/w3c/correlation-context/blob/c974664b9ab4d33af6355f1f7f03a2d52c89a99e/correlation_context/HTTP_HEADER_FORMAT.md) using a vendor-specific header name to avoid collisions with the W3C Correlation Context specification should it change in the future.
107
+
108
+
#### Header Name
109
+
110
+
`CorrelationContext` implementations MUST use the header name `otcorrelations`.
111
+
112
+
#### Header Value
113
+
114
+
`CorrelationContext` MUST be serialized according to the [editor's draft of W3C Correlation Context as of March 27, 2020](https://github.com/w3c/correlation-context/blob/c974664b9ab4d33af6355f1f7f03a2d52c89a99e/correlation_context/HTTP_HEADER_FORMAT.md).
115
+
116
+
`CorrelationContext` values MUST be serialized as Percent-Encoded UTF-8 strings according to [RFC 3986 Section 2.1](https://tools.ietf.org/html/rfc3986#section-2.1).
0 commit comments