@opentelemetry/propagator-jaeger
TypeScript icon, indicating that this package has built-in type declarations

1.22.0 • Public • Published

OpenTelemetry Propagator Jaeger

NPM Published Version Apache License

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

example image

Useful links

License

Apache 2.0 - See LICENSE for more information.

Dependencies (1)

Dev Dependencies (22)

Package Sidebar

Install

npm i @opentelemetry/propagator-jaeger

Weekly Downloads

1,872,355

Version

1.22.0

License

Apache-2.0

Unpacked Size

80.7 kB

Total Files

39

Last publish

Collaborators

  • pichlermarc
  • bogdandrutu
  • dyladan