elastic-node

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

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.5.4 4.5.4 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, 08:03 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.5.4
Raw JSON
4.5.4.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-252f80dd,team=alpha
ot-baggage-routing-key rk-252f80dd
traceparent 00-cc01bb26ecb45f2b6cbcd7dafd76df1b-04cc5fc75a655ca6-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--758bc6f3

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-cc01bb26ecb45f2b6cbcd7dafd76df1b-6355f7e5a4a821db-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--758bc6f3
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-9f1267d2,team=alpha
ot-baggage-routing-key rk-9f1267d2
traceparent 00-f212c50ffab705a4baa5fdf93164af6b-7553f4f10f503b16-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--10f72ea8

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-f212c50ffab705a4baa5fdf93164af6b-0550247b1d73f700-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--10f72ea8
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-649ba6f3,team=alpha
ot-baggage-routing-key rk-649ba6f3
traceparent 00-4540989a694c99cb7672d1f91602522a-b5a3b811f0fb10d7-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--3ddb4667

Observed at the sink on the outbound Kafka record headers

traceparent 00-4540989a694c99cb7672d1f91602522a-406d170df6af1e35-01
tracestate cptest=v1
test id
elastic-node--http-kafka--3ddb4667
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-7e393297,team=alpha
ot-baggage-routing-key rk-7e393297
traceparent 00-a432b0e831e9608e09ee6d8703cd1d00-10ae5c31687dd449-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--746eae8d

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

No headers observed.

test id
elastic-node--http-rabbitmq--746eae8d
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-0062093b,team=alpha
ot-baggage-routing-key rk-0062093b
traceparent 00-94c5e09bc2b48768f198bb02cf22d5ee-e004ef8859b85b33-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--eade5f6c

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-94c5e09bc2b48768f198bb02cf22d5ee-135a414f2f9ef914-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--eade5f6c
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-e6f1811a,team=alpha
ot-baggage-routing-key rk-e6f1811a
traceparent 00-7ce6a23b8a426a2a99e6dd9d5a83dac1-012aa52bccb3724d-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--32144c36

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-7ce6a23b8a426a2a99e6dd9d5a83dac1-60573e357a4ea0a4-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--32144c36
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-10746467,team=alpha
ot-baggage-routing-key rk-10746467
traceparent 00-afe665e4718bdf99be0c494accb3a893-c0d41baf427af8e1-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--d8dcee8e

Observed at the sink on the outbound Kafka record headers

traceparent 00-afe665e4718bdf99be0c494accb3a893-97c7052f53db1584-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--d8dcee8e
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-fa1c6cac,team=alpha
ot-baggage-routing-key rk-fa1c6cac
traceparent 00-7b7da0631ba3d59aa7cd2e4add6538b0-bd559f05b1f764e2-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--fa3ba8f3

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--fa3ba8f3
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-d7cedd00,team=alpha
ot-baggage-routing-key rk-d7cedd00
traceparent 00-bcbcafa14043960bf2c1361226ca0b77-138e4e23fccc2419-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--1bec70e8

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-bcbcafa14043960bf2c1361226ca0b77-510dc2819cf36d9d-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--1bec70e8
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-09cd1e97,team=alpha
ot-baggage-routing-key rk-09cd1e97
traceparent 00-c357610d2df905c6b4ef1ba7a3f690f9-ffe0c765f249e888-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--18e24ba5

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-c357610d2df905c6b4ef1ba7a3f690f9-96d2b7f4b6e712ab-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--18e24ba5
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-e3f97147,team=alpha
ot-baggage-routing-key rk-e3f97147
traceparent 00-65f90f2d79186daa03e888f3e651e2e6-54a059af4341ac03-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--5ac1b9f5

Observed at the sink on the outbound Kafka record headers

traceparent 00-65f90f2d79186daa03e888f3e651e2e6-fd267323d9c2c2f6-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--5ac1b9f5
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-79b7e919,team=alpha
ot-baggage-routing-key rk-79b7e919
traceparent 00-96f6f2cc155a638a8687c06a21e4f429-b87758030a6c5d3e-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--11d9b810

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--11d9b810
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-dea8dc1e,team=alpha
ot-baggage-routing-key rk-dea8dc1e
traceparent 00-b98c3e874ab5fb029e2e46a0998e51d2-895c0956f0d78f71-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--272cc7bc

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--272cc7bc
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-c7896407,team=alpha
ot-baggage-routing-key rk-c7896407
traceparent 00-4558415906113d884df996116bef9d17-e3cea4268e55b487-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--4f7ccafd

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--4f7ccafd
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-c4835116,team=alpha
ot-baggage-routing-key rk-c4835116
traceparent 00-b5f94877f2b27aed340e5247b5d02169-184cd488324fc8da-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--a130521e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--a130521e
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-678933ec,team=alpha
ot-baggage-routing-key rk-678933ec
traceparent 00-7a6dfccab68f82c01a7e500a928b4541-18fb990fc057f6e2-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--1b535f07

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--1b535f07
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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