otel-node

Node.js zero-code @opentelemetry/auto-instrumentations-node0.79.0

attach --require @opentelemetry/auto-instrumentations-node/register

48/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

Not compared with the uninstrumented Node.js relay (no run on this site measured it on node v26.13.0).

Explanations

OpenTelemetry carries the OpenTracing-era ot-baggage-* headers only with the opt-in ottrace propagator

config ot-baggage-* is a legacy OpenTracing convention. OpenTelemetry's default propagators are tracecontext and baggage; the OT Trace propagator that carries ot-baggage-* has to be selected.

The seeded ot-baggage-routing-key header is neither extracted nor re-emitted by any OpenTelemetry variant on any delivered boundary. Every variant here runs the SDK's default propagator set, tracecontext,baggage, and that set does not include the OpenTracing header format: OpenTelemetry standardised on W3C baggage, and the same values travel there instead.

The OpenTelemetry specification does list an opt-in OT Trace propagator (OTEL_PROPAGATORS=ottrace, marked deprecated) that reads and writes ot-tracer-traceid, ot-tracer-spanid, ot-tracer-sampled and ot-baggage-*, for applications migrating from OpenTracing. Several SDKs ship it as a separate package; it is never in the default set, and the harness has not measured it, so whether it makes these cells pass is documented, not verified.

The header outlives its deprecation only in Datadog's Java, Node and Go tracers, where it crosses all 16 boundaries as legacy behaviour of the datadog style (see datadog-ot-baggage-not-implemented for the Datadog tracers that do not carry it).

16 cells affected

otel-ot-baggage-not-default

OTel Node 0.48.0–0.77.0: instrumentation-amqplib's version cap excludes the app's amqplib 2.x, so RabbitMQ legs carry nothing

resolved fixed in 0.78.0 @opentelemetry/instrumentation-amqplib 0.39.0–0.66.0 declare supportedVersions '>=0.5.5 <1' (later '<2'); against the relay's amqplib 2.2.1 the module is never patched, so nothing is injected on publish and nothing extracted on consume. 0.67.0 (auto-instrumentations-node 0.78.0) raised the cap to '<3'.

Every cell this note describes now passes with 0.78.0. It is kept as the record of what failed before (21 cells).

Back-tests: auto-instrumentations-node 0.47.0–0.47.1 pass every RabbitMQ leg; 0.48.0 through 0.77.0 pass none of them (*->rabbitmq absent, rabbitmq->http/grpc a new trace, rabbitmq->rabbitmq absent); 0.78.0 and later pass all seven again. Every other leg is unaffected.

The relay's AMQP client is amqplib 2.2.1 (2.0.0 shipped 10 May 2026). An OTel JS instrumentation patches a module only if its version satisfies the instrumentation's supportedVersions. instrumentation-amqplib 0.38.0 (in auto-instrumentations-node 0.47.x) declared >=0.5.5 with no upper bound, so it patched 2.x and happened to work. opentelemetry-js-contrib PR #2196 "standardize supported versions and set upper bound limit" (merged 20 June 2024) capped it at >=0.5.5 <1, shipped in instrumentation-amqplib 0.39.0 / auto-instrumentations-node 0.48.0 on 4 July 2024. The cap was a guard against patching an untested major, long before amqplib 1.0 (March 2026) existed. PR #3491 raised it to <2 for amqplib 1.x (April 2026), and PR #3573 "support amqplib@2" (merged 17 June 2026) to <3, shipped in 0.67.0 / auto-instrumentations-node 0.78.0 on 3 July 2026.

This is the harness measuring each tracer version against the application's current library: paired with amqplib 0.10.x, the line they were released against, 0.48.0–0.77.0 instrument RabbitMQ. A user on one of those tracer versions with amqplib ≥1 gets no RabbitMQ propagation and no warning; the fix is auto-instrumentations-node ≥0.78.0 (or instrumentation-amqplib ≥0.67.0 registered directly). The two mixed legs (kafka->rabbitmq, rabbitmq->kafka) also need Kafka instrumented, see otel-node-kafkajs-added-0.49.0.

21 cells, now passing

otel-node-amqplib-2-outside-supported-range

OTel Node before 0.49.0: auto-instrumentations-node had no kafkajs instrumentation, so Kafka legs carry nothing

resolved fixed in 0.49.0 @opentelemetry/instrumentation-kafkajs joined the auto-instrumentations-node meta-package in 0.49.0 (opentelemetry-js-contrib PR #2340); earlier versions patch nothing in kafkajs, so no headers are injected on produce and consumed context is not extracted.

Every cell this note describes now passes with 0.49.0. It is kept as the record of what failed before (21 cells).

Back-tests: auto-instrumentations-node 0.47.0–0.48.0 pass no Kafka leg (*->kafka absent, kafka->http/grpc a new trace, kafka->kafka absent); 0.49.0 and later pass all of them, apart from the baggage-only regression at 0.57.0–0.58.1, which is not Kafka-specific.

@opentelemetry/instrumentation-kafkajs was created in opentelemetry-js-contrib PR #2089 (merged 17 May 2024) and added to the getNodeAutoInstrumentations() set by PR #2340 "enable auto-instrumentation for KafkaJS" (merged 23 July 2024), shipped in auto-instrumentations-node 0.49.0 on 29 July 2024. Before that a Node service relying on the meta-package had no Kafka coverage at all unless it registered the instrumentation itself.

What a user on 0.47.x–0.48.0 can do: register @opentelemetry/instrumentation-kafkajs explicitly alongside the meta-package, or upgrade to ≥0.49.0. The two mixed legs (kafka->rabbitmq, rabbitmq->kafka) also need RabbitMQ instrumented, see otel-node-amqplib-2-outside-supported-range.

21 cells, now passing

otel-node-kafkajs-added-0.49.0

Versions measured

Tracer
@opentelemetry/auto-instrumentations-node 0.79.0 0.79.0 on npm github
Runtime
node v26.13.0
Setup tier
zero-code Runtime attach only: an agent flag, a preload require, the CLR profiler environment, a php.ini extension. No application source involved.
Attach
--require @opentelemetry/auto-instrumentations-node/register
Relay source
relays/node/tools/otel
Ran at
11 Nov 2026, 08:35 UTC
Harness
5900298 · measured in backtest-otel-node-0.79.0
Raw JSON
0.79.0.json → variants[id = "otel-node"]

Libraries

express5.3.0
grpc-js1.14.7
http_clientaxios 1.21.0
kafkajs2.2.4
rabbitmqamqplib 2.2.1

Configuration

OTEL_PROPAGATORStracecontext,baggage
OTEL_TRACES_EXPORTERconsole

Evidence per hop

What the driver seeded and what the sink observed, one entry per boundary.

HTTP HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound HTTP request headers

baggage routing-key=rk-be4664fe,team=alpha
ot-baggage-routing-key rk-be4664fe
traceparent 00-56d1e7db91d716b95f048f50f119e4be-07b7ebd7a06c197d-01
tracestate cptest=v1
x-cp-canary otel-node--http-http--07a45c16

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-be4664fe,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-56d1e7db91d716b95f048f50f119e4be-e21a4d1c141257d9-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--http-http--07a45c16
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound HTTP request headers

baggage routing-key=rk-a1b508c0,team=alpha
ot-baggage-routing-key rk-a1b508c0
traceparent 00-6a5856231d9a7327093550ccad7707da-722f6447ac8acea6-01
tracestate cptest=v1
x-cp-canary otel-node--http-grpc--3edb72fc

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-a1b508c0,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-6a5856231d9a7327093550ccad7707da-54abde17b646e9c8-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--http-grpc--3edb72fc
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-a9aa3a02,team=alpha
ot-baggage-routing-key rk-a9aa3a02
traceparent 00-bc25fd9eb3bdf3b30671ac783bd975d3-c50732638f694a05-01
tracestate cptest=v1
x-cp-canary otel-node--http-kafka--c58cd257

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-a9aa3a02,team=alpha
traceparent 00-bc25fd9eb3bdf3b30671ac783bd975d3-6b82a5773e384726-01
tracestate cptest=v1
test id
otel-node--http-kafka--c58cd257
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-b40b7454,team=alpha
ot-baggage-routing-key rk-b40b7454
traceparent 00-9064d25c1dc2a0ec953ab3b477ae5e0c-c43e9e7b2098a767-01
tracestate cptest=v1
x-cp-canary otel-node--http-rabbitmq--16b20355

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-b40b7454,team=alpha
traceparent 00-9064d25c1dc2a0ec953ab3b477ae5e0c-0cacddb36e809585-01
tracestate cptest=v1
test id
otel-node--http-rabbitmq--16b20355
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-a009f335,team=alpha
ot-baggage-routing-key rk-a009f335
traceparent 00-122dadfa65b5e958423631c57e4a1ddc-f9aa0e76c2a6e04d-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-http--b042d971

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-a009f335,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-122dadfa65b5e958423631c57e4a1ddc-a40a7d59c3a7736c-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--grpc-http--b042d971
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound gRPC metadata

baggage routing-key=rk-8b92f692,team=alpha
ot-baggage-routing-key rk-8b92f692
traceparent 00-76391ee57c8e5d31146149400a60686f-bd90afc65212fe2d-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-grpc--8bc42ace

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-8b92f692,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-76391ee57c8e5d31146149400a60686f-80509daa712b2d1c-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--grpc-grpc--8bc42ace
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound gRPC metadata

baggage routing-key=rk-f936e9c7,team=alpha
ot-baggage-routing-key rk-f936e9c7
traceparent 00-94b3aad335f1d9460b872347c0a18fd5-41cc62f9e9c1b674-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-kafka--697c4056

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-f936e9c7,team=alpha
traceparent 00-94b3aad335f1d9460b872347c0a18fd5-0531f6e6603cce16-01
tracestate cptest=v1
test id
otel-node--grpc-kafka--697c4056
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound gRPC metadata

baggage routing-key=rk-7d696335,team=alpha
ot-baggage-routing-key rk-7d696335
traceparent 00-27ff652732d1d0c66e92208e0e532004-47474aa7e236406f-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-rabbitmq--a908b08c

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-7d696335,team=alpha
traceparent 00-27ff652732d1d0c66e92208e0e532004-d60721fe44ebf7b3-01
tracestate cptest=v1
test id
otel-node--grpc-rabbitmq--a908b08c
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-76227cad,team=alpha
ot-baggage-routing-key rk-76227cad
traceparent 00-6df2e85c99ad4c58ea2f6a58ca06a688-bc7927538eed3b7a-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-http--beb200e3

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-76227cad,team=alpha
connection keep-alive
content-length 45
content-type application/json
traceparent 00-6df2e85c99ad4c58ea2f6a58ca06a688-2b12853922607328-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--kafka-http--beb200e3
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-49765cce,team=alpha
ot-baggage-routing-key rk-49765cce
traceparent 00-7a736c9d820cbf7eec3e8900003a3dd5-b402fca327be1a13-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-grpc--17ee5298

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-49765cce,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-7a736c9d820cbf7eec3e8900003a3dd5-6c58ced4fe3eaa07-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--kafka-grpc--17ee5298
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-25dc5674,team=alpha
ot-baggage-routing-key rk-25dc5674
traceparent 00-59eeca62aadaab6f65b5e7e2fbe7b690-dd0a89e82e7c33dc-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-kafka--34e282cd

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-25dc5674,team=alpha
traceparent 00-59eeca62aadaab6f65b5e7e2fbe7b690-e4503795b18a9a22-01
tracestate cptest=v1
test id
otel-node--kafka-kafka--34e282cd
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-4d5f64c9,team=alpha
ot-baggage-routing-key rk-4d5f64c9
traceparent 00-56ccc48314e0a70051e7d57148ac66c0-8c88d0ccb4cff500-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-rabbitmq--6774d488

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-4d5f64c9,team=alpha
traceparent 00-56ccc48314e0a70051e7d57148ac66c0-54d744e8bad72ca7-01
tracestate cptest=v1
test id
otel-node--kafka-rabbitmq--6774d488
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-62966129,team=alpha
ot-baggage-routing-key rk-62966129
traceparent 00-68b7fa500b4dca54fab6f27dc7b38b98-516cf50f0163e079-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-http--0eb6e21f

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-62966129,team=alpha
connection keep-alive
content-length 48
content-type application/json
traceparent 00-68b7fa500b4dca54fab6f27dc7b38b98-6753ec6ab2228fe6-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--rabbitmq-http--0eb6e21f
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-0c1ba0af,team=alpha
ot-baggage-routing-key rk-0c1ba0af
traceparent 00-691f0f62d5c870ac7a69b410f7732978-78e7b0b471e69f6c-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-grpc--2b6fb6f6

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-0c1ba0af,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-691f0f62d5c870ac7a69b410f7732978-b359b7cc6a7774cb-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--rabbitmq-grpc--2b6fb6f6
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-ea3b0f90,team=alpha
ot-baggage-routing-key rk-ea3b0f90
traceparent 00-21da2ffedacd8ad643a8d42f55f4ddc4-78596955269a3b2f-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-kafka--e25dcb05

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-ea3b0f90,team=alpha
traceparent 00-21da2ffedacd8ad643a8d42f55f4ddc4-79ae77abfe02c6cf-01
tracestate cptest=v1
test id
otel-node--rabbitmq-kafka--e25dcb05
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-264ade44,team=alpha
ot-baggage-routing-key rk-264ade44
traceparent 00-fd793e25251eeb1f57190f7c64c291c1-c8cac4eb0bebf07d-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-rabbitmq--c82cd26e

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-264ade44,team=alpha
traceparent 00-fd793e25251eeb1f57190f7c64c291c1-24db878b1e8576b5-01
tracestate cptest=v1
test id
otel-node--rabbitmq-rabbitmq--c82cd26e
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent

Cells are generated by the harness, never transcribed from documentation. Report a wrong one.