elastic-node

Node.js zero-code elastic-apm-node4.12.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.12.0 4.12.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:35 UTC
Harness
e793604 · measured in backtest-elastic-node-4.12.0
Raw JSON
4.12.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-0eefa791,team=alpha
ot-baggage-routing-key rk-0eefa791
traceparent 00-d6ed05d5a8d060e640ad60265e799350-9db4b94b11651586-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--1d88e30b

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-d6ed05d5a8d060e640ad60265e799350-fa108c0a5e47bc70-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--1d88e30b
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-750cb4a7,team=alpha
ot-baggage-routing-key rk-750cb4a7
traceparent 00-4c509c7c9115fd3d0107032800931b13-42a22efeeb6b5621-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--e4fa7c8f

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-4c509c7c9115fd3d0107032800931b13-0068f324ecbe5f1a-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--e4fa7c8f
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-76341c31,team=alpha
ot-baggage-routing-key rk-76341c31
traceparent 00-7e4f882aef6ba492515970e918e170ef-586e39652f6cd1a9-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--9a95ce52

Observed at the sink on the outbound Kafka record headers

traceparent 00-7e4f882aef6ba492515970e918e170ef-9d7b8b9860e613cd-01
tracestate cptest=v1
test id
elastic-node--http-kafka--9a95ce52
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-bc52d715,team=alpha
ot-baggage-routing-key rk-bc52d715
traceparent 00-22cb4df4f34e4bcc30460bdc64b8fee2-0ccd5f64838731d2-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--0c6bdca2

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

No headers observed.

test id
elastic-node--http-rabbitmq--0c6bdca2
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-806c8200,team=alpha
ot-baggage-routing-key rk-806c8200
traceparent 00-47507fafe0d03d084a0e3d4dfdc215fe-ac62d5166c09ab9f-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--4cc4bb27

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-47507fafe0d03d084a0e3d4dfdc215fe-1e09ad8b3163d7ca-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--4cc4bb27
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-072b4b27,team=alpha
ot-baggage-routing-key rk-072b4b27
traceparent 00-36bb5a7d3757d3ce64aa27e112090c46-97bb44433095cf11-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--a396fbaa

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-36bb5a7d3757d3ce64aa27e112090c46-acc1e52dc99dca9a-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--a396fbaa
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-94d5b98a,team=alpha
ot-baggage-routing-key rk-94d5b98a
traceparent 00-b6ae5bbbdbc16ead5d016d3e1d7018c9-1b7bfbc6350f0724-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--3e789b51

Observed at the sink on the outbound Kafka record headers

traceparent 00-b6ae5bbbdbc16ead5d016d3e1d7018c9-ac1de752da5a14d4-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--3e789b51
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-937028a3,team=alpha
ot-baggage-routing-key rk-937028a3
traceparent 00-f50df304724860f1a9f9915e2d637936-151a23e201201e22-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--23a9d956

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--23a9d956
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-6489ed8e,team=alpha
ot-baggage-routing-key rk-6489ed8e
traceparent 00-36c0695f0921e7fa216f1d9b8d269d04-522fcb726c61983b-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--879b3034

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-36c0695f0921e7fa216f1d9b8d269d04-b3eb9e09893a3e3f-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--879b3034
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-b8353c79,team=alpha
ot-baggage-routing-key rk-b8353c79
traceparent 00-16c00cb71c3d2598500086861c84891d-b05220413a6b0c38-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--e4e4f155

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-16c00cb71c3d2598500086861c84891d-5c8830dd13671b9e-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--e4e4f155
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-04cc0830,team=alpha
ot-baggage-routing-key rk-04cc0830
traceparent 00-d6508638e1dc9ddb6ae98bbfa24d39d4-c57cc24d2ec9fc29-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--4cfda1eb

Observed at the sink on the outbound Kafka record headers

traceparent 00-d6508638e1dc9ddb6ae98bbfa24d39d4-c2b9bf2ede46ad13-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--4cfda1eb
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-bbdfb396,team=alpha
ot-baggage-routing-key rk-bbdfb396
traceparent 00-4cf99e592c7e599c8e090d8cd26b66f6-5093f838337bf9ef-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--654ff047

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--654ff047
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-a0189e03,team=alpha
ot-baggage-routing-key rk-a0189e03
traceparent 00-9b47c35aef0259e6ac29f361e6afc5c3-60bec43206994b85-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--474c358c

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--474c358c
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-fa2b0a7d,team=alpha
ot-baggage-routing-key rk-fa2b0a7d
traceparent 00-3c9f7f9eb6e24ac4c240dda88aeee672-6ad2b3e4d071bddf-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--62668968

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--62668968
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-b52e0ebc,team=alpha
ot-baggage-routing-key rk-b52e0ebc
traceparent 00-5cbb4571f5df758a5e60ad8377724555-49da451ffa84ff75-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--7264d533

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--7264d533
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-18881a5f,team=alpha
ot-baggage-routing-key rk-18881a5f
traceparent 00-18a0e401ef476871eb247efb5d162d36-6631a7363d43bcd8-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--65d1bc44

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--65d1bc44
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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