elastic-node

Node.js zero-code elastic-apm-node4.13.0

attach --require elastic-apm-node/start

18/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 v22.23.4).

Explanations

Elastic APM and New Relic have no OpenTracing-era ot-baggage-* propagation

by-design ot-baggage-* is a legacy OpenTracing convention; Elastic APM and New Relic each define their propagation header set without it and offer no option that adds it.

The seeded ot-baggage-routing-key header is neither extracted nor re-emitted by any Elastic or New Relic variant on any delivered boundary. Neither tool writes the OpenTracing header format: Elastic's agent spec defines traceparent, tracestate, baggage and the binary elasticapmtraceparent; New Relic's distributed-tracing model is traceparent, tracestate and the vendor newrelic header. Neither documents a setting that adds ot-baggage-*.

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). Where a tool propagates W3C baggage, the same values travel there instead.

16 cells affected

ot-baggage-not-implemented

Elastic Node, Python, Ruby and PHP agents do not propagate W3C baggage on any boundary

open Only Elastic's Java agent (and .NET over HTTP/gRPC) implements the baggage propagation the agent spec mandates; these agents drop it on every boundary.

Elastic's agent spec mandates baggage support, but only the Java agent delivers it end-to-end. elastic-apm-node 4.18.0 has no W3C baggage implementation; elastic-apm (Python) 6.26.2, elastic-apm (Ruby) 4.9.0 and elastic_apm (PHP) 1.17.0 measure baggage absent on every boundary, including http->http where traceparent/tracestate continue. The seeded member is neither extracted nor re-emitted.

Outside Java, Elastic APM cannot currently carry application baggage across protocol boundaries; a user must forward the baggage header as an application header themselves. Elastic's Node distributed-tracing docs likewise describe manual traceparent passing only (no tracestate or baggage). We found no upstream issue requesting W3C baggage in these agents.

16 cells affected

elastic-agents-no-w3c-baggage

elastic-apm-node does not instrument amqplib; RabbitMQ legs carry nothing

open amqplib is absent from the Node agent's supported technologies; long-standing requests (#1188, #1791) have been open since 2019/2020.

elastic-apm-node 4.18.0 propagates traceparent and tracestate over HTTP, gRPC and kafkajs, but amqplib is absent from the supported-technologies page, so nothing is injected on *->rabbitmq and nothing is extracted on rabbitmq->*. Elastic's docs direct queue users to manual traceparent passing (the recipe carries traceparent only).

The amqplib requests #1188 (Jul 2019) and #1791 (Jul 2020) remain open. Workaround: pass traceparent/tracestate in message headers yourself and start the consumer transaction with the received traceparent.

14 cells affected

elastic-node-amqplib-not-instrumented

Versions measured

Tracer
elastic-apm-node 4.13.0 4.13.0 on npm github
Runtime
node v22.23.4
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 elastic-apm-node/start
Relay source
relays/node/tools/elastic
Ran at
9 Nov 2026, 19:40 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.13.0
Raw JSON
4.13.0.json → variants[id = "elastic-node"]

Libraries

express4.22.2
grpc-js1.14.4
http_clientaxios 1.20.0
kafkajs2.2.4
rabbitmqamqplib 0.10.9

Configuration

Library defaults: no propagation-related environment set.

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-59f12299,team=alpha
ot-baggage-routing-key rk-59f12299
traceparent 00-938b17e44275973c64d34d5dc9649710-a227826dcc6e3bef-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--91c3d6fb

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 47
content-type application/json
traceparent 00-938b17e44275973c64d34d5dc9649710-0d3df8a30b474f6e-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--91c3d6fb
raw statuses
baggage=absenttracestate=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-19598491,team=alpha
ot-baggage-routing-key rk-19598491
traceparent 00-a5b7c7e9726b809de707504592c2edb4-93a4efd4bfd1b226-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--470b0b92

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-a5b7c7e9726b809de707504592c2edb4-25abda289cc21601-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--470b0b92
raw statuses
baggage=absenttracestate=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-d266a16d,team=alpha
ot-baggage-routing-key rk-d266a16d
traceparent 00-5ab40fde2f50f24c02f561ca8e7212f9-edc1fb667560f857-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--b5b92482

Observed at the sink on the outbound Kafka record headers

traceparent 00-5ab40fde2f50f24c02f561ca8e7212f9-93b7354183ab903e-01
tracestate cptest=v1
test id
elastic-node--http-kafka--b5b92482
raw statuses
baggage=absenttracestate=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-3f2ed8a3,team=alpha
ot-baggage-routing-key rk-3f2ed8a3
traceparent 00-13883e712e9459e63974ffd018117803-085d9e27253328e3-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--6318e8f3

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

No headers observed.

test id
elastic-node--http-rabbitmq--6318e8f3
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-7a3a266d,team=alpha
ot-baggage-routing-key rk-7a3a266d
traceparent 00-e542eeb718cc42cf21c578cc703b48c1-5d40281c08c75d26-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--c5a99430

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 47
content-type application/json
traceparent 00-e542eeb718cc42cf21c578cc703b48c1-c2b52a8f04b70753-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--c5a99430
raw statuses
baggage=absenttracestate=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-8b5b2b90,team=alpha
ot-baggage-routing-key rk-8b5b2b90
traceparent 00-264bf22123e6885859dcb66c5ac5381d-4cbbc7fae39b63a9-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--f2795154

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-264bf22123e6885859dcb66c5ac5381d-78937d7349aa8c39-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--f2795154
raw statuses
baggage=absenttracestate=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-32e23567,team=alpha
ot-baggage-routing-key rk-32e23567
traceparent 00-be0e9d3bd045048912f4d8ade4416027-34f803b7c5538f75-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--a384cb41

Observed at the sink on the outbound Kafka record headers

traceparent 00-be0e9d3bd045048912f4d8ade4416027-4fffb132a781a9ea-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--a384cb41
raw statuses
baggage=absenttracestate=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-833413e8,team=alpha
ot-baggage-routing-key rk-833413e8
traceparent 00-9a80051c918dbc973bf9f9d81274cd7a-06414c8fcfd2bae7-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--02383f66

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--02383f66
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-6a279c46,team=alpha
ot-baggage-routing-key rk-6a279c46
traceparent 00-db436cee2da33f496b44b9adb203d1f6-f0def60b0f423df9-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--9830a5d2

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-db436cee2da33f496b44b9adb203d1f6-004e3bfeec5f864d-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--9830a5d2
raw statuses
baggage=absenttracestate=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-5f8bb9de,team=alpha
ot-baggage-routing-key rk-5f8bb9de
traceparent 00-53c41a2b090229cccc0b10f705db9ce9-7d9b5947e8adabda-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--65a68227

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-53c41a2b090229cccc0b10f705db9ce9-ea04fca9b98b366b-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--65a68227
raw statuses
baggage=absenttracestate=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-86492e8b,team=alpha
ot-baggage-routing-key rk-86492e8b
traceparent 00-128dec92f090083c62a502a510849c58-4427823d2e8e3453-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--d528c756

Observed at the sink on the outbound Kafka record headers

traceparent 00-128dec92f090083c62a502a510849c58-7b54adbcd333060b-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--d528c756
raw statuses
baggage=absenttracestate=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-4033a3fd,team=alpha
ot-baggage-routing-key rk-4033a3fd
traceparent 00-9ef11f1f1ae2a4baadfed9a55b315789-d668bc5479f64ee9-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--7e07dd49

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--7e07dd49
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-e29a14c0,team=alpha
ot-baggage-routing-key rk-e29a14c0
traceparent 00-dda3c7caa4bbd7c0d2ff9410d23766df-bbbab44f1f710f23-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--43e94e35

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 51
content-type application/json
user-agent axios/1.20.0
test id
elastic-node--rabbitmq-http--43e94e35
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-9ff06df0,team=alpha
ot-baggage-routing-key rk-9ff06df0
traceparent 00-c072e6e88bbe83d5a4f83d6e84ca3963-6ed1cce8ad9d0758-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--0575804b

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
user-agent grpc-node-js/1.14.4
test id
elastic-node--rabbitmq-grpc--0575804b
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-f0a45a90,team=alpha
ot-baggage-routing-key rk-f0a45a90
traceparent 00-0066108349d7bb7e1ca8188fd2b2a406-4011621e79c6b8d1-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--d64f93f7

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--d64f93f7
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-0823c59a,team=alpha
ot-baggage-routing-key rk-0823c59a
traceparent 00-a88012a7db9cb0108f2bbc092ab4dff3-09f30af99bee2f0a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--2ac806e1

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--2ac806e1
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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