elastic-node

Node.js zero-code elastic-apm-node3.50.0

attach --require elastic-apm-node/start

8/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 3.50.0 3.50.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
10 Nov 2026, 10:14 UTC
Harness
374f21d · measured in backtest-elastic-node-3.50.0
Raw JSON
3.50.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-306c9605,team=alpha
ot-baggage-routing-key rk-306c9605
traceparent 00-881255bac4b9b99a0db4a0da1c5c5196-66786c109f4210da-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--2a60fb9a

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
elastic-apm-traceparent 00-881255bac4b9b99a0db4a0da1c5c5196-5e21816d1590e264-01
traceparent 00-881255bac4b9b99a0db4a0da1c5c5196-5e21816d1590e264-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--2a60fb9a
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-465518b6,team=alpha
ot-baggage-routing-key rk-465518b6
traceparent 00-804a9313ee8d3ee868f37f4fc237b581-317ac4dddee8304a-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--408f82db

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
elastic-apm-traceparent 00-804a9313ee8d3ee868f37f4fc237b581-af0602eeabf7c027-01
grpc-accept-encoding identity,deflate,gzip
traceparent 00-804a9313ee8d3ee868f37f4fc237b581-af0602eeabf7c027-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--408f82db
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-53de68ff,team=alpha
ot-baggage-routing-key rk-53de68ff
traceparent 00-9fc4f437c64755fe0440ca0fe1ccbce8-20410a0a6d1cfd22-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--0e2f0203

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--http-kafka--0e2f0203
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-5d05b22c,team=alpha
ot-baggage-routing-key rk-5d05b22c
traceparent 00-2c6f22788595c826af06f981daf01101-e1eec216f69b59ea-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--bf6a0fe2

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

No headers observed.

test id
elastic-node--http-rabbitmq--bf6a0fe2
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-5372a318,team=alpha
ot-baggage-routing-key rk-5372a318
traceparent 00-33124e2d39e6af91eb0b66256c5ac1af-394929814a7689dd-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--6bb05c32

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
elastic-apm-traceparent 00-33124e2d39e6af91eb0b66256c5ac1af-aca68d10c15f0bba-01
traceparent 00-33124e2d39e6af91eb0b66256c5ac1af-aca68d10c15f0bba-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--6bb05c32
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-05bdca8d,team=alpha
ot-baggage-routing-key rk-05bdca8d
traceparent 00-293fe2ce5015602a29cea32f7813acc7-58697467b6609dc5-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--08cb50e5

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
elastic-apm-traceparent 00-293fe2ce5015602a29cea32f7813acc7-4ebebd463c171edb-01
grpc-accept-encoding identity,deflate,gzip
traceparent 00-293fe2ce5015602a29cea32f7813acc7-4ebebd463c171edb-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--08cb50e5
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-9b20d4b9,team=alpha
ot-baggage-routing-key rk-9b20d4b9
traceparent 00-b2e48365713d06527b22fcff9b70baee-96e31f6224a9c905-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--e44b1680

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--grpc-kafka--e44b1680
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound gRPC metadata

baggage routing-key=rk-06f21c71,team=alpha
ot-baggage-routing-key rk-06f21c71
traceparent 00-c74e417a8747b3bef71c4e49bcaec4e3-4154a10259faefce-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--77abc83c

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--77abc83c
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-14515d29,team=alpha
ot-baggage-routing-key rk-14515d29
traceparent 00-6aa3bb3ece693371fee7a3a389379633-f659025b3acc131e-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--fed7b9d0

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
user-agent axios/1.20.0
test id
elastic-node--kafka-http--fed7b9d0
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-fba72dcf,team=alpha
ot-baggage-routing-key rk-fba72dcf
traceparent 00-ba71a79ea35d99c039bbca81ef206c69-89abf82a350abba5-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--d2ae563d

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--kafka-grpc--d2ae563d
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-d0389d29,team=alpha
ot-baggage-routing-key rk-d0389d29
traceparent 00-319681fd5c12487622caf702703e40c9-3857a24c5292d647-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--35064e53

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--kafka-kafka--35064e53
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-d796769a,team=alpha
ot-baggage-routing-key rk-d796769a
traceparent 00-27b6bcd806f2b5f86d4b26ea9f4d4eb0-b2d1876e4f105854-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--573db1a4

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--573db1a4
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-ad26bfe9,team=alpha
ot-baggage-routing-key rk-ad26bfe9
traceparent 00-f8ad2742acc9d0b2dc31ff22a4d958a0-2c398689a90fb634-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--80d7d5ab

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--80d7d5ab
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-1e97b939,team=alpha
ot-baggage-routing-key rk-1e97b939
traceparent 00-5ccbe9cb57279e4e3cbba4a8cfcbe935-d3e2bb2a0cef74f8-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--4ffa27e4

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--4ffa27e4
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-c00cc899,team=alpha
ot-baggage-routing-key rk-c00cc899
traceparent 00-0b186257037d43ea52570bb4f303cd15-b7f4f2d57e8b3a10-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--d4593897

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--d4593897
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-81943a97,team=alpha
ot-baggage-routing-key rk-81943a97
traceparent 00-d9b6cd2a2e4cd9559cc4746e6961982c-7c7f26be1eb2dc7c-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--8107c125

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--8107c125
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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