@elastic/opentelemetry-node 1.6.0
Changelog
Features and enhancements
-
Add support for
ELASTIC_OTEL_OPAMP_HEADERSenvironment variable for setting headers for OpAMP requests. This typically would be used to specify authorization for a givenELASTIC_OTEL_OPAMP_ENDPOINT, e.g.:export ELASTIC_OTEL_OPAMP_HEADERS="Authorization=ApiKey sekrit". #1069 -
HTTP exporters now accept TLS configuration via the env vars
OTEL_EXPORTER_OTLP_CERTIFICATE,OTEL_EXPORTER_OTLP_CLIENT_KEYandOTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE. The signal specific vars (OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE, ...) are also taken into account. -
Prepend EDOT Node.js product identifier in the
user-agentfor all HTTP and GRPC exporters. (#1104) -
Switch back to the upstream resource detector
@opentelemetry/resource-detector-gcpwhich covers more environments thanks to Google's contribution. -
Add support for dynamic configuration of the sampling rate of the default logger via the
sampling_ratevariable in Central Configuration. #1070While this is supported in the EDOT Node.js SDK, it will only be present in
the "Agent Configuration" UI of Kibana version 9.3 and later.
Fixes
- Update to latest
@opentelemetry/*dependencies (#1104), which includes a couple of fixes:- a bug in
@opentelemetry/otlp-grpc-exporter-base@0.206.0prevented to set theuser-agentheader in metadata. A change in the exporter configuration fixed it. - the context manager and propagation setup is the first thing at the start of the SDK. This prevents detectors from leaking telemetry since they get the right context.
- a bug in