elastic-node

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

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.7.3 4.7.3 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, 07:46 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.7.3
Raw JSON
4.7.3.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-0344ab4a,team=alpha
ot-baggage-routing-key rk-0344ab4a
traceparent 00-cac500164b45a72ff82fbfc5b458d496-4e5b489cca6feeeb-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--0b45c5b1

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-cac500164b45a72ff82fbfc5b458d496-f4ac576ada19d23e-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--0b45c5b1
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-28737a0c,team=alpha
ot-baggage-routing-key rk-28737a0c
traceparent 00-e6ec6dd07e87322048b1ec574e9280ea-8b68b0ceeadd97c4-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--7506902a

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-e6ec6dd07e87322048b1ec574e9280ea-0afbe40c4dac161f-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--7506902a
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-e4d00816,team=alpha
ot-baggage-routing-key rk-e4d00816
traceparent 00-504c156f8bf3743781328025ba99745e-1a2f3797d2c08452-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--ab0ed8bb

Observed at the sink on the outbound Kafka record headers

traceparent 00-504c156f8bf3743781328025ba99745e-4417a8f3b20ab45d-01
tracestate cptest=v1
test id
elastic-node--http-kafka--ab0ed8bb
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-bb136e88,team=alpha
ot-baggage-routing-key rk-bb136e88
traceparent 00-a8bb949e539e834dab36e832ef81855d-691f9e23378d7c84-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--b9914dc7

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

No headers observed.

test id
elastic-node--http-rabbitmq--b9914dc7
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-9276eefd,team=alpha
ot-baggage-routing-key rk-9276eefd
traceparent 00-8a48c386b06ba82a83fe18f9ce66673d-59f0396615549259-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--ce43e31b

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-8a48c386b06ba82a83fe18f9ce66673d-e2ac9b7b4a9890ab-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--ce43e31b
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-f84906d0,team=alpha
ot-baggage-routing-key rk-f84906d0
traceparent 00-8f86b7d4984feef7cbd0c785531a6d88-9b0936686b137790-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--d344d9a6

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-8f86b7d4984feef7cbd0c785531a6d88-55c612e72d659505-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--d344d9a6
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-4ae31e0a,team=alpha
ot-baggage-routing-key rk-4ae31e0a
traceparent 00-d36f144ebd3bd8395ca72ea0ef4f4836-2572a316b3607c28-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--8fb51251

Observed at the sink on the outbound Kafka record headers

traceparent 00-d36f144ebd3bd8395ca72ea0ef4f4836-d723261e2862bf94-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--8fb51251
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-976f11c1,team=alpha
ot-baggage-routing-key rk-976f11c1
traceparent 00-8a4b359f5a33d8dbdcad5c089bb181d7-e04ae605df9d307e-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--c5794228

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--c5794228
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-3665b3ba,team=alpha
ot-baggage-routing-key rk-3665b3ba
traceparent 00-c536ca8cfc59876e74aff658e48fd153-63c14b8cb8b3dcad-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--6884cca8

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-c536ca8cfc59876e74aff658e48fd153-8d9e95e3d59a9e5f-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--6884cca8
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-86e88b4f,team=alpha
ot-baggage-routing-key rk-86e88b4f
traceparent 00-0a652a2d771ea17ffb648de955b2db38-d62ad5db3e5b98eb-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--f1a64bf2

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-0a652a2d771ea17ffb648de955b2db38-e6e6666ce0078d0a-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--f1a64bf2
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-ebbfd419,team=alpha
ot-baggage-routing-key rk-ebbfd419
traceparent 00-3260dd6c84e3fb56f3a7207b8055dde3-cd9515ea77e4313c-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--271d8f70

Observed at the sink on the outbound Kafka record headers

traceparent 00-3260dd6c84e3fb56f3a7207b8055dde3-925925be6a2edbed-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--271d8f70
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-f39c77ef,team=alpha
ot-baggage-routing-key rk-f39c77ef
traceparent 00-adf8699c2e3bf539e8f994d05c70b681-c9b559dabc186039-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--07aabee7

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--07aabee7
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-6ce0bfa5,team=alpha
ot-baggage-routing-key rk-6ce0bfa5
traceparent 00-359b56bf4569e0b48d24a5adc3ef6402-20b71717c9c595dd-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--c0b4a564

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--c0b4a564
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-4278e943,team=alpha
ot-baggage-routing-key rk-4278e943
traceparent 00-e8ca3f2a83b99485665eff7efd374b58-6bd577f39d1d206d-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--948d9977

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--948d9977
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-073ca665,team=alpha
ot-baggage-routing-key rk-073ca665
traceparent 00-69adfce721e81d6f10544a80caf8f737-f7f4eb8faeb96464-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--c484283c

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--c484283c
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-93885490,team=alpha
ot-baggage-routing-key rk-93885490
traceparent 00-ef49a917972cd8bdcf0926106f49501c-6f1569b6028acc5e-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--179f0a29

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--179f0a29
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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