@opentelemetry/auto-configuration-propagators
v0.3.1
Published
Metapackage which bundles known propagators for configuration via an env variable.
Downloads
82,146
Readme
OpenTelemetry Meta Package for Propagators Configuration
About
This module provides a way to get a propagator based on the OTEL_PROPAGATORS environment variable.
Installation
npm install --save @opentelemetry/auto-configuration-propagators
Usage
Here is an example of how to retrieve a propagator:
import { getPropagator } from '@opentelemetry/auto-configuration-propagators';
const propagator = getPropagator();
Please see the Supported propagators section for more information.
Supported propagators
The specification defines a list of known propagators for the OTEL_PROPAGATORS
env variable. Only these propagators are supported.
- "tracecontext": W3C Trace Context
- "baggage": W3C Baggage
- "b3": B3 Single
- "b3multi": B3 Multi
- "jaeger": Jaeger
- "xray": AWS X-Ray (third party)
- "xray-lambda": AWS X-Ray Lambda (third party)
- "ottrace": OT Trace (third party)
Useful links
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more about OpenTelemetry JavaScript: https://github.com/open-telemetry/opentelemetry-js
License
APACHE 2.0 - See LICENSE for more information.