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
In the [global tracer configuration file](https://github.com/open-telemetry/opentelemetry-js/blob/master/getting-started/README.md#initialize-a-global-tracer), configure the following:
25
25
@@ -36,38 +36,38 @@ provider.register({
36
36
});
37
37
```
38
38
39
-
###Propagator Details
39
+
## Propagator Details
40
40
41
41
Example header:`X-Amzn-Trace-Id: Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1`
42
42
43
43
The header consists of three parts: the root trace ID, the parent ID and the sampling decision.
44
44
45
-
####Root - The AWS X-Ray format trace ID
45
+
### Root - The AWS X-Ray format trace ID
46
46
47
47
* Format: (spec-version)-(timestamp)-(UUID)
48
-
* spec_version - The version of the AWS X-Ray header format. Currently, only "1" is valid.
49
-
* timestamp - 32-bit number in base16 format, corresponds to the first 8 characters of the OpenTelemetry trace ID. Note, while X-Ray calls this timestamp, for the purpose of propagation it is opaque and any value will work.
50
-
* UUID - 96-bit random number in base16 format, corresponds to the last 10 characters of the OpenTelemetry trace ID.
48
+
* spec_version - The version of the AWS X-Ray header format. Currently, only "1" is valid.
49
+
* timestamp - 32-bit number in base16 format, corresponds to the first 8 characters of the OpenTelemetry trace ID. Note, while X-Ray calls this timestamp, for the purpose of propagation it is opaque and any value will work.
50
+
* UUID - 96-bit random number in base16 format, corresponds to the last 10 characters of the OpenTelemetry trace ID.
51
51
52
52
Root is analogous to the [OpenTelemetry Trace ID](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext), with some small format changes.
53
53
For additional reading, see the [AWS X-Ray Trace ID](https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html#xray-api-traceids) public documentation.
54
54
55
-
####Parent - The ID of the AWS X-Ray Segment
55
+
### Parent - The ID of the AWS X-Ray Segment
56
56
57
57
* 64-bit random number in base16 format. Populated from the [OpenTelemetry Span ID](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
58
58
59
-
####Sampled - The sampling decision
59
+
### Sampled - The sampling decision
60
60
61
61
* Defined in the AWS X-Ray specification as a tri-state field, with "0", "1" and "?" as valid values. Only "0" and "1" are used in this propagator. If "?", a new trace will be started.
62
62
* Populated from the [OpenTelemetry trace flags](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
63
63
64
64
## Useful links
65
65
66
-
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
67
-
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
68
-
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
66
+
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
67
+
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
68
+
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
69
69
70
-
###License
70
+
## License
71
71
72
72
Apache 2.0 - See [LICENSE][license-url] for more information.
0 commit comments