@opentelemetry/propagator-jaeger
v1.28.0
Published
OpenTelemetry Jaeger propagator provides HTTP header propagation for systems that are using Jaeger HTTP header format.
Downloads
14,216,369
Readme
OpenTelemetry Propagator Jaeger
OpenTelemetry Jaeger propagator provides HTTP header propagation for systems that are using Jaeger HTTP header format.
Format: {trace-id}:{span-id}:{parent-span-id}:{flags}
{trace-id}
- 64-bit or 128-bit random number in base16 format.
- Can be variable length, shorter values are 0-padded on the left.
- Value of 0 is invalid.
{span-id}
- 64-bit random number in base16 format.
{parent-span-id}
- Set to 0 because this field is deprecated.
{flags}
- One byte bitmap, as two hex digits.
Example of usage:
const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { JaegerPropagator } = require('@opentelemetry/propagator-jaeger');
const provider = new NodeTracerProvider();
provider.register({
propagator: new JaegerPropagator()
});
Baggage Notes
Jeager Baggage is represented as multiple headers where the names are carrier dependent. For this reason, they are omitted from the fields
method. This behavior should be taken into account if your application relies on the fields
functionality. See the specification for more details.
Trace on Jaeger UI
Useful links
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more about OpenTelemetry JavaScript: https://github.com/open-telemetry/opentelemetry-js
- For help or feedback on this project, join us in GitHub Discussions
License
Apache 2.0 - See LICENSE for more information.