elastic-node

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

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.2 4.5.2 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:25 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.5.2
Raw JSON
4.5.2.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-9bb18110,team=alpha
ot-baggage-routing-key rk-9bb18110
traceparent 00-f0ea80f92c650bef29548db4431933db-38b7fcad9568823e-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--95ed8197

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-f0ea80f92c650bef29548db4431933db-18cef453c518796b-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--95ed8197
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-f867ac18,team=alpha
ot-baggage-routing-key rk-f867ac18
traceparent 00-53d9c816a2bb96e9c0956a9ff2f7dcd2-3f27aa13829440fa-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--a62dbaa5

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-53d9c816a2bb96e9c0956a9ff2f7dcd2-83a14d0d0ba0e444-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--a62dbaa5
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-50e92a15,team=alpha
ot-baggage-routing-key rk-50e92a15
traceparent 00-f340ac307c653eb91f4e28906ac08f99-9bac0a23e14f14a0-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--4ecbab74

Observed at the sink on the outbound Kafka record headers

traceparent 00-f340ac307c653eb91f4e28906ac08f99-a162a8ab525f763c-01
tracestate cptest=v1
test id
elastic-node--http-kafka--4ecbab74
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-98dad4c9,team=alpha
ot-baggage-routing-key rk-98dad4c9
traceparent 00-a842bf4e1219a2119aee14b1ea354447-db54acff1cf6a822-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--48049964

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

No headers observed.

test id
elastic-node--http-rabbitmq--48049964
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-9c676a01,team=alpha
ot-baggage-routing-key rk-9c676a01
traceparent 00-5ef65346fef556114301471553d06c23-fbd8cc88f3e1a389-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--f9a9612c

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-5ef65346fef556114301471553d06c23-9c87fba5965d47e8-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--f9a9612c
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-5894075b,team=alpha
ot-baggage-routing-key rk-5894075b
traceparent 00-865ef267f32ffc5aa6852bbe0134d2c1-0db0d7c2213e19b0-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--a9b91396

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-865ef267f32ffc5aa6852bbe0134d2c1-cb3f5e218ddab79c-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--a9b91396
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-198cc310,team=alpha
ot-baggage-routing-key rk-198cc310
traceparent 00-f2ff026452380ab796ce7ae20860ea4d-07bc5bf2795c1d47-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--33393527

Observed at the sink on the outbound Kafka record headers

traceparent 00-f2ff026452380ab796ce7ae20860ea4d-6cae1d6b55696267-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--33393527
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-89c5cf31,team=alpha
ot-baggage-routing-key rk-89c5cf31
traceparent 00-d76a953646da083981311525ab857a3f-059a06ae5e353b46-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--9f1709e3

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--9f1709e3
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-8f56edd5,team=alpha
ot-baggage-routing-key rk-8f56edd5
traceparent 00-477cadf6101b6c2fa6bd93aa24e03fb0-04d131aee48099e5-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--3c919c50

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-477cadf6101b6c2fa6bd93aa24e03fb0-ac38068d2fde4b26-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--3c919c50
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-428b360d,team=alpha
ot-baggage-routing-key rk-428b360d
traceparent 00-7b616c05d476f4eeb0070bd8a2da5079-8e4fa68346ca628e-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--af6f8e99

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-7b616c05d476f4eeb0070bd8a2da5079-4bf46f44f0852555-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--af6f8e99
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-7ab185bc,team=alpha
ot-baggage-routing-key rk-7ab185bc
traceparent 00-afab9c99d70ee35959f9729989f64567-6fbd18bd7d57447b-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--105bc6c5

Observed at the sink on the outbound Kafka record headers

traceparent 00-afab9c99d70ee35959f9729989f64567-ce040fa6ddee59f1-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--105bc6c5
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-c159032b,team=alpha
ot-baggage-routing-key rk-c159032b
traceparent 00-67c00f4b3f089fb0e9d28a8c949a41f8-bcc6de3a30603e5a-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--92db73cd

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--92db73cd
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-fe5e2e12,team=alpha
ot-baggage-routing-key rk-fe5e2e12
traceparent 00-97c353547f422b0a7fb9d25042f8c595-c1da01c78a7029d5-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--090216bb

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--090216bb
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-bc22dfd7,team=alpha
ot-baggage-routing-key rk-bc22dfd7
traceparent 00-c7e2412911ffb6a9541de627843cf232-d539c8b9acfe3431-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--400c1c81

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--400c1c81
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-f51bbb85,team=alpha
ot-baggage-routing-key rk-f51bbb85
traceparent 00-9a7392c908e1d8e9c49de4bb15867a69-6cca41dd6dda8f87-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--e14945bf

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--e14945bf
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-7aa8ed3c,team=alpha
ot-baggage-routing-key rk-7aa8ed3c
traceparent 00-fdbfc19ef35eb129dceedac7147407e9-91c56ab62c769e44-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--ef50cbba

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

No headers observed.

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

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