elastic-node

Node.js zero-code elastic-apm-node4.1.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 4.1.0 4.1.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:03 UTC
Harness
374f21d · measured in backtest-elastic-node-4.1.0
Raw JSON
4.1.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-c3ebf32a,team=alpha
ot-baggage-routing-key rk-c3ebf32a
traceparent 00-044810caf5f0b94623b6b33abcb2202f-807831ec786da74b-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--59330bf0

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-044810caf5f0b94623b6b33abcb2202f-6981204926c6b2e3-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--59330bf0
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-5a31b994,team=alpha
ot-baggage-routing-key rk-5a31b994
traceparent 00-b671191544736849de39b3fb5e615b9e-aed4624ec7a3efe6-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--212fbe8f

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-b671191544736849de39b3fb5e615b9e-d447c617f4cb6a47-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--212fbe8f
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-cfc3cacd,team=alpha
ot-baggage-routing-key rk-cfc3cacd
traceparent 00-8cc20a8a92e8eded56cd05c587033189-c782c07b1eb4ac5f-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--817118c0

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--http-kafka--817118c0
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-53679ea9,team=alpha
ot-baggage-routing-key rk-53679ea9
traceparent 00-1369aea7775ed07fd30a0f7c6a45f5f6-0192187bf3f9fb35-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--c07cb38c

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

No headers observed.

test id
elastic-node--http-rabbitmq--c07cb38c
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-aa1d1b47,team=alpha
ot-baggage-routing-key rk-aa1d1b47
traceparent 00-565786f4da6ae5484266e0645680c41c-37b383d0b7ca6ec7-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--af3fc70e

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-565786f4da6ae5484266e0645680c41c-551b72cd8f39ccf5-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--af3fc70e
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-8b591b50,team=alpha
ot-baggage-routing-key rk-8b591b50
traceparent 00-e779dac55f2c4524423099fa88446234-5f0b660eb53efa9b-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--0d3e1448

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-e779dac55f2c4524423099fa88446234-1a347dba1e1be848-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--0d3e1448
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-634ccc31,team=alpha
ot-baggage-routing-key rk-634ccc31
traceparent 00-59ecacf12cc17f5dfce6396888206fc5-d8cdd76f6b1826ca-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--359452f8

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--grpc-kafka--359452f8
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-b90f50b5,team=alpha
ot-baggage-routing-key rk-b90f50b5
traceparent 00-ed726ddf3ab81ca3f4660df8584e4f20-55215d03788e36c9-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--3e8110d3

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--3e8110d3
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-2fb2c108,team=alpha
ot-baggage-routing-key rk-2fb2c108
traceparent 00-1158984bfb61ad1e156c650468eb9a26-1605c11110ca186f-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--d76ca34a

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--d76ca34a
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-b4cf05b9,team=alpha
ot-baggage-routing-key rk-b4cf05b9
traceparent 00-4728f38bb6b4031bf7ca58e171cd5643-6d842da70ecca6dd-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--ba7465dd

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--ba7465dd
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-c572df00,team=alpha
ot-baggage-routing-key rk-c572df00
traceparent 00-feb8724aa98d9a601f5012861e6352db-27ff339a1e165ed8-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--0cd9c954

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--kafka-kafka--0cd9c954
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-4370e119,team=alpha
ot-baggage-routing-key rk-4370e119
traceparent 00-bad96541289d88397879f8ba28667e8f-f3442bae86b0b6c6-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--f12f499e

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--f12f499e
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-e8c9e543,team=alpha
ot-baggage-routing-key rk-e8c9e543
traceparent 00-e1ecf4cd6645f9384e73baed15a5eba1-6acd8b074c27ddd1-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--13ca2bea

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--13ca2bea
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-2f23db3a,team=alpha
ot-baggage-routing-key rk-2f23db3a
traceparent 00-54938b279d078fb7141c91e27426f82f-57b13c103d30eedd-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--c287dff9

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--c287dff9
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-71e883f6,team=alpha
ot-baggage-routing-key rk-71e883f6
traceparent 00-f725e8dca894cb8758d50cb4bbaefe3e-2b6b7999032ef280-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--77e8f094

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--77e8f094
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-8c857a12,team=alpha
ot-baggage-routing-key rk-8c857a12
traceparent 00-ec7b9bbb4f23a0343f26ae9326c68bf6-b57f882942ce054a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--0093fc17

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--0093fc17
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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