elastic-node

Node.js zero-code elastic-apm-node4.15.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.15.0 4.15.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
1 Nov 2026, 05:33 UTC
Harness
e793604 · measured in backtest-elastic-node-4.15.0
Raw JSON
4.15.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-9961d014,team=alpha
ot-baggage-routing-key rk-9961d014
traceparent 00-22bb565f1a4352a377f53fd34f7e009b-dd8672df92b31a97-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--b762479f

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-22bb565f1a4352a377f53fd34f7e009b-03665edb77bed94a-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--b762479f
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-b2ca91f7,team=alpha
ot-baggage-routing-key rk-b2ca91f7
traceparent 00-d29a29169d45a804b4e234d7b4c74653-b1b5919672c5fa0a-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--36efd579

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-d29a29169d45a804b4e234d7b4c74653-9778b6740ee4409e-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--36efd579
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-7ec3ad3d,team=alpha
ot-baggage-routing-key rk-7ec3ad3d
traceparent 00-221353238fb45b7636f0a5d2c22221a9-380e9ae66a0ce3ea-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--dbb8ec10

Observed at the sink on the outbound Kafka record headers

traceparent 00-221353238fb45b7636f0a5d2c22221a9-3c51afb36a28cb91-01
tracestate cptest=v1
test id
elastic-node--http-kafka--dbb8ec10
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-2e159a0b,team=alpha
ot-baggage-routing-key rk-2e159a0b
traceparent 00-a970f6867cdd61992143fe8d993f4d10-357fab317489d412-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--f91eddfe

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

No headers observed.

test id
elastic-node--http-rabbitmq--f91eddfe
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-4ab29c46,team=alpha
ot-baggage-routing-key rk-4ab29c46
traceparent 00-0a7cd0d0e8301e14b90fcbe873553b3d-d88b8e41f9d0ecf0-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--2def1832

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-0a7cd0d0e8301e14b90fcbe873553b3d-2e02b29dbbd93a9d-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--2def1832
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-6563286f,team=alpha
ot-baggage-routing-key rk-6563286f
traceparent 00-950755a3c0e56f4780e1298585a0a3a7-e5b9a347502e6648-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--19e8d149

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-950755a3c0e56f4780e1298585a0a3a7-83e06a757f97de50-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--19e8d149
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-140b1cbf,team=alpha
ot-baggage-routing-key rk-140b1cbf
traceparent 00-7c4691bcee8e8c7d7d07fb48759ae19f-d69005c455bc89d2-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--1930a036

Observed at the sink on the outbound Kafka record headers

traceparent 00-7c4691bcee8e8c7d7d07fb48759ae19f-b96ce01e2837aec1-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--1930a036
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-7cec749b,team=alpha
ot-baggage-routing-key rk-7cec749b
traceparent 00-c20fc7452314a8d11fbfd442b5096b3e-47d8ae6d2b7e75f2-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--38ea6a66

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--38ea6a66
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-bb22ad1a,team=alpha
ot-baggage-routing-key rk-bb22ad1a
traceparent 00-eadb4c13610a068a68135701b9e54029-d03842b34d083780-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--15a3e79b

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-eadb4c13610a068a68135701b9e54029-9aaca11ed47d415e-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--15a3e79b
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-bb10359e,team=alpha
ot-baggage-routing-key rk-bb10359e
traceparent 00-fdf3da1df56b9ebd97b1b1e4ae8b47b9-78792b23b94a0f82-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--dcb0a205

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-fdf3da1df56b9ebd97b1b1e4ae8b47b9-2e57871a4b9cd137-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--dcb0a205
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-264644d8,team=alpha
ot-baggage-routing-key rk-264644d8
traceparent 00-8db7aaf0f459ac60d9a4dc7a0398e32a-314f3ae0cb23ffd9-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--7285e991

Observed at the sink on the outbound Kafka record headers

traceparent 00-8db7aaf0f459ac60d9a4dc7a0398e32a-95df01234a3717a6-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--7285e991
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-22649a17,team=alpha
ot-baggage-routing-key rk-22649a17
traceparent 00-4f949cb346fc6f153ae96fb5a2f0d7c0-627ae5bece127a56-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--3fd6ecf4

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--3fd6ecf4
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-7c7c2f94,team=alpha
ot-baggage-routing-key rk-7c7c2f94
traceparent 00-f3ecd7953af8423afed074b88fdb7c9e-54aa4fda61534a04-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--2faedfdb

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--2faedfdb
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-e81ae88d,team=alpha
ot-baggage-routing-key rk-e81ae88d
traceparent 00-fd22067eb0a496ea37545195ef75b8e4-c0f9d8b43b4e4214-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--6e2dedf8

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--6e2dedf8
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-a0045822,team=alpha
ot-baggage-routing-key rk-a0045822
traceparent 00-21a5b75e71e06f03d7938781b17dd996-22ae4458291386f5-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--f9b4c821

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--f9b4c821
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-bcd78206,team=alpha
ot-baggage-routing-key rk-bcd78206
traceparent 00-66fbe744d81438e737179add5af24df1-77be38052e5739d3-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--17a663c3

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--17a663c3
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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