otel-node

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

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

27/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

fixed later 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'.

This version predates the fix: the 21 cells below still fail here and pass from 0.78.0.

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 affected

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

fixed later 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.

This version predates the fix: the 6 cells below still fail here and pass from 0.49.0.

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.

6 cells affected

otel-node-kafkajs-added-0.49.0

Versions measured

Tracer
@opentelemetry/auto-instrumentations-node 0.64.1 0.64.1 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:36 UTC
Harness
5900298 · measured in backtest-otel-node-0.64.1
Raw JSON
0.64.1.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-3bf347e2,team=alpha
ot-baggage-routing-key rk-3bf347e2
traceparent 00-0b600977bcb300bbacb0e25f13eb454a-3db3d5db5405970e-01
tracestate cptest=v1
x-cp-canary otel-node--http-http--acd857e6

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-3bf347e2,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-0b600977bcb300bbacb0e25f13eb454a-ef81ccbf9b3266bc-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--http-http--acd857e6
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-3f55c7e2,team=alpha
ot-baggage-routing-key rk-3f55c7e2
traceparent 00-e084038ddaa48e6e089fd5fde0353a4b-b1a1cba0119093ce-01
tracestate cptest=v1
x-cp-canary otel-node--http-grpc--f367aeff

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-3f55c7e2,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-e084038ddaa48e6e089fd5fde0353a4b-bbef2de2f463fa3f-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--http-grpc--f367aeff
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-99fd0cc5,team=alpha
ot-baggage-routing-key rk-99fd0cc5
traceparent 00-e4d066ef7e7019f4bff5fedfb475506d-83bbd4a370476f33-01
tracestate cptest=v1
x-cp-canary otel-node--http-kafka--3048488e

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-99fd0cc5,team=alpha
traceparent 00-e4d066ef7e7019f4bff5fedfb475506d-6acf0790717f05b8-01
tracestate cptest=v1
test id
otel-node--http-kafka--3048488e
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-5aa24559,team=alpha
ot-baggage-routing-key rk-5aa24559
traceparent 00-fb42c0063073fab124a4ffd1d630a33a-8870bb761df2ea15-01
tracestate cptest=v1
x-cp-canary otel-node--http-rabbitmq--22eaaf7e

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

No headers observed.

test id
otel-node--http-rabbitmq--22eaaf7e
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-b12493ad,team=alpha
ot-baggage-routing-key rk-b12493ad
traceparent 00-3dd66f2f0fa160f591c484567d1b5dae-7641f6c5f119d2cd-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-http--89f7c49a

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-b12493ad,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-3dd66f2f0fa160f591c484567d1b5dae-31280f32639c0e7e-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--grpc-http--89f7c49a
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-993b9f64,team=alpha
ot-baggage-routing-key rk-993b9f64
traceparent 00-7dea0444a2a09c9d7018ea2c7c03bdaa-4cca0d720847fc42-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-grpc--5945800f

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-993b9f64,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-7dea0444a2a09c9d7018ea2c7c03bdaa-4bb385365d6f47dd-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--grpc-grpc--5945800f
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-cdc58302,team=alpha
ot-baggage-routing-key rk-cdc58302
traceparent 00-96f90c302de5f184df6025ebdcf90fd3-a2af5c58552946ec-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-kafka--2d06713d

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-cdc58302,team=alpha
traceparent 00-96f90c302de5f184df6025ebdcf90fd3-90ba735fa22166fb-01
tracestate cptest=v1
test id
otel-node--grpc-kafka--2d06713d
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-0710ef95,team=alpha
ot-baggage-routing-key rk-0710ef95
traceparent 00-7fc6661114d342eb6b9eeaf080fc01dd-581cb3e2db88c8aa-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-rabbitmq--ade3e315

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

No headers observed.

test id
otel-node--grpc-rabbitmq--ade3e315
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-335d6495,team=alpha
ot-baggage-routing-key rk-335d6495
traceparent 00-d96dce846945f16c5f1e8cf69dcc83aa-205f5cd6ad92aff7-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-http--cfa1ff3e

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-335d6495,team=alpha
connection keep-alive
content-length 45
content-type application/json
traceparent 00-d96dce846945f16c5f1e8cf69dcc83aa-1a7f21a0f4ef7819-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--kafka-http--cfa1ff3e
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-4120d584,team=alpha
ot-baggage-routing-key rk-4120d584
traceparent 00-6c92b2ad9869f7e57bac73115f5696d9-a9e05dcfd9fdda65-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-grpc--88cdf45f

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-4120d584,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-6c92b2ad9869f7e57bac73115f5696d9-a25b31e8903d5f5f-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--kafka-grpc--88cdf45f
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-480dc785,team=alpha
ot-baggage-routing-key rk-480dc785
traceparent 00-aa46b6b2bfdea79e758267f9b69b309b-79aee7cb32ec45ce-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-kafka--3c42a2db

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-480dc785,team=alpha
traceparent 00-aa46b6b2bfdea79e758267f9b69b309b-15e9a078c7cf08fe-01
tracestate cptest=v1
test id
otel-node--kafka-kafka--3c42a2db
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-d485d24c,team=alpha
ot-baggage-routing-key rk-d485d24c
traceparent 00-dfac39ba6b29a10ef51a1b4262c560a3-059ac3820c4c33ec-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-rabbitmq--c3b6b6de

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

No headers observed.

test id
otel-node--kafka-rabbitmq--c3b6b6de
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-94474bbb,team=alpha
ot-baggage-routing-key rk-94474bbb
traceparent 00-880007348a5db9c271966d0f84ba8783-838d1a142601b524-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-http--02168868

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
connection keep-alive
content-length 48
content-type application/json
traceparent 00-c630da9451492e893ed939656068db19-3ee9ec47b0b0e4ed-01
user-agent axios/1.21.0
test id
otel-node--rabbitmq-http--02168868
raw statuses
baggage=absenttracestate=absenttraceparent=new_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-9c21fbc9,team=alpha
ot-baggage-routing-key rk-9c21fbc9
traceparent 00-6d438f15d9d6bfc51f1c0d3c4296a6c4-9ae7aa0706e37a33-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-grpc--ce0fc2ba

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-0e278ef34b3bb9bf451ad830f6174e08-40ad42416405e8f5-01
user-agent grpc-node-js/1.14.7
test id
otel-node--rabbitmq-grpc--ce0fc2ba
raw statuses
baggage=absenttracestate=absenttraceparent=new_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-976a267e,team=alpha
ot-baggage-routing-key rk-976a267e
traceparent 00-9e1656009e0ceaf53f00b963eb388184-56a7c14aa0a32603-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-kafka--4c7ca0cb

Observed at the sink on the outbound Kafka record headers

traceparent 00-d93956d288f73217b74ee810d227e9bb-6248a87634608290-01
test id
otel-node--rabbitmq-kafka--4c7ca0cb
raw statuses
baggage=absenttracestate=absenttraceparent=new_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-92b6b43c,team=alpha
ot-baggage-routing-key rk-92b6b43c
traceparent 00-f172099f4e42f9285a41fd0aed15a3ad-3f1aa8bc53297836-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-rabbitmq--b9da6386

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

No headers observed.

test id
otel-node--rabbitmq-rabbitmq--b9da6386
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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