elastic-node

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

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.0 4.7.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, 07:56 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.7.0
Raw JSON
4.7.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-0defa522,team=alpha
ot-baggage-routing-key rk-0defa522
traceparent 00-7dfc2edcb5de8c733fe43020b5cd28e6-b19bca1dcc5b71b3-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--6f45a0bd

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-7dfc2edcb5de8c733fe43020b5cd28e6-7f241a4202b2bdc5-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--6f45a0bd
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-a9b28d9e,team=alpha
ot-baggage-routing-key rk-a9b28d9e
traceparent 00-aa207c256cba97800f7ab8fa6631ba44-36155dbb88456409-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--5fe046e0

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-aa207c256cba97800f7ab8fa6631ba44-7b6ac90e35df3395-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--5fe046e0
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-53ec6bf7,team=alpha
ot-baggage-routing-key rk-53ec6bf7
traceparent 00-fbd7c53ceb69c0cb3cd0c463eee1d717-e0b317c85ad6cf1f-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--d93faea0

Observed at the sink on the outbound Kafka record headers

traceparent 00-fbd7c53ceb69c0cb3cd0c463eee1d717-3419772871085e10-01
tracestate cptest=v1
test id
elastic-node--http-kafka--d93faea0
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-69321aef,team=alpha
ot-baggage-routing-key rk-69321aef
traceparent 00-779457986f973479f5de78a5c38aa0ce-2079370b763cc761-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--f7007514

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

No headers observed.

test id
elastic-node--http-rabbitmq--f7007514
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-169bc451,team=alpha
ot-baggage-routing-key rk-169bc451
traceparent 00-b46e9ea0750c96886cbc320cae810c8e-60d09677646dc157-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--b0639409

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-b46e9ea0750c96886cbc320cae810c8e-3b472084e695e242-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--b0639409
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-7f443f9d,team=alpha
ot-baggage-routing-key rk-7f443f9d
traceparent 00-41e901feed3a06841d537e857c6cb091-7244ab547892114b-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--594abb0f

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-41e901feed3a06841d537e857c6cb091-ffb1dc31071198e8-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--594abb0f
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-991e5887,team=alpha
ot-baggage-routing-key rk-991e5887
traceparent 00-23e3f84682e34746c12387b9626cfc09-6ddf36ca4ef49788-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--2be674d7

Observed at the sink on the outbound Kafka record headers

traceparent 00-23e3f84682e34746c12387b9626cfc09-53cbc7d43ef689c7-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--2be674d7
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-6bc37fdd,team=alpha
ot-baggage-routing-key rk-6bc37fdd
traceparent 00-6f68a5cc2a58ec986606611c0b8ac971-1da306f09c52439b-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--26644c86

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--26644c86
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-4aad781c,team=alpha
ot-baggage-routing-key rk-4aad781c
traceparent 00-f705fd5da9f4570fa6451c9c794b5f62-bf9e89decb2bc955-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--bb10d819

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-f705fd5da9f4570fa6451c9c794b5f62-935e2733c758e13f-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--bb10d819
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-2dfcfe2e,team=alpha
ot-baggage-routing-key rk-2dfcfe2e
traceparent 00-d3aa08c22789127ffbf7422d8bf57534-5f1a67e6ae3c824b-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--187aea14

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-d3aa08c22789127ffbf7422d8bf57534-6c5055027f22ebe7-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--187aea14
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-7df5932d,team=alpha
ot-baggage-routing-key rk-7df5932d
traceparent 00-004a6d4479110c750e22f1f1b05f6933-8992847725e46260-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--f6888d34

Observed at the sink on the outbound Kafka record headers

traceparent 00-004a6d4479110c750e22f1f1b05f6933-6bf411e6b0ca414c-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--f6888d34
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-d14f35b6,team=alpha
ot-baggage-routing-key rk-d14f35b6
traceparent 00-3432dbd9910f33487c7ff8e70215f6a0-61f171819dfcd6be-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--cb5c5a47

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--cb5c5a47
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-b08a7d00,team=alpha
ot-baggage-routing-key rk-b08a7d00
traceparent 00-0d7843afe3958f19fcd66d417d76604c-89d4790c705dbcc9-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--3de99c9d

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--3de99c9d
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-dc437c73,team=alpha
ot-baggage-routing-key rk-dc437c73
traceparent 00-eb4938ce6daf252e5e6dfce50b3387c6-f62a3259e6c657c0-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--0fd80e91

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--0fd80e91
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-d1f76a00,team=alpha
ot-baggage-routing-key rk-d1f76a00
traceparent 00-0374a72ae8d8f3ffc146c157daa50685-ad423a9a4aed7585-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--34c0a731

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--34c0a731
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-4492deb6,team=alpha
ot-baggage-routing-key rk-4492deb6
traceparent 00-dfff5241b3f660b2b351a0a8366168ca-4e405911f29075ad-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--de545835

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

No headers observed.

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

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