newrelic-node

Node.js zero-code newrelic (npm)13.20.0

attach --require newrelic

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

New Relic agents carry no W3C baggage on any boundary

by-design Baggage is not part of New Relic's distributed-tracing model (traceparent, tracestate, newrelic); no agent forwards the header and no feature request exists.

New Relic's "How distributed tracing works" defines the complete header model as exactly three headers: traceparent, tracestate and the vendor newrelic header. The seeded W3C baggage member is neither extracted nor re-emitted by any of the seven agents on any of the 16 boundaries, even where trace context continues perfectly (Python is 16/16 for trace context).

An org-wide search for "baggage" across all New Relic agent repositories returns three unrelated hits; no feature request for W3C baggage exists in any of the seven agent repos. New Relic carries no baggage on any protocol; an application that routes on it has to carry the header itself.

16 cells affected

newrelic-no-baggage

New Relic agents continue the trace but set the traceparent sampled flag from their own sampling decision

by-design A New Relic agent takes the trace id from traceparent but decides sampling itself unless an upstream New Relic agent's tracestate entry says otherwise; the flags byte it writes mirrors that decision, not the seeded 01.

Every New Relic pass on traceparent continues the seeded trace id, but the flags byte on the outbound header is the agent's own. The harness seeds 01 (sampled); what comes out is 00 on hops where the agent did not sample the transaction and 01 where it did. The W3C specification allows this: the sampled flag is a hint, and each participant may decide for itself.

New Relic's model carries the decision in its @nr tracestate entry (the sampled and priority fields). When an inbound request has an @nr entry from a trusted account, the agent adopts that decision; the harness seeds no @nr entry, so each agent decides with its own adaptive sampler and writes the result into both the @nr entry and the traceparent flags. Which hops come out 00 therefore varies by agent and by run.

The harness scores traceparent on the trace id only; the flags byte is recorded with each hop but not graded, so these cells pass. A W3C-only service downstream of a New Relic agent sees 00 on every request the agent did not sample, and may treat the trace as unsampled.

9 cells affected

newrelic-traceparent-flags-own-sampling

New Relic Node: kafkajs instrumentation is behind a default-off feature flag

config feature_flags.js ships kafkajs_instrumentation: false; with it off the agent skips kafkajs entirely, so no headers are injected or accepted on Kafka.

newrelic 14.3.10 is 9/16: HTTP, gRPC and RabbitMQ pass in both directions, Kafka carries nothing in either direction. lib/feature_flags.js has kafkajs_instrumentation: false (still false on main); with the flag off the agent logs "skipping instrumentation of kafkajs" and does nothing. The instrumentation shipped behind the flag in v11.19.0 (Jun 2024) and was never promoted to default; the compatibility list also caps kafkajs at 2.2.4.

Empirically confirmed: rerunning with NEW_RELIC_FEATURE_FLAG_KAFKAJS_INSTRUMENTATION=true flips all seven Kafka boundaries to pass (W3C headers both directions), which gives 16/16 with one environment variable changed. The run is archived in the harness repository as results/experiments/newrelic-node-kafkajs-flag.json.

14 cells affected

newrelic-node-kafkajs-feature-flag-off

Versions measured

Tracer
newrelic 13.20.0 13.20.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 newrelic
Relay source
relays/node/tools/newrelic
Ran at
10 Nov 2026, 10:17 UTC
Harness
374f21d · measured in backtest-newrelic-node-13.20.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
13.20.0.json → variants[id = "newrelic-node"]

Libraries

express4.22.2
grpc-js1.14.4
http_clientaxios 1.20.0
kafkajs2.2.4
rabbitmqamqplib 0.10.9

Configuration

NEW_RELIC_DISTRIBUTED_TRACING_ENABLEDtrue

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-89adc425,team=alpha
ot-baggage-routing-key rk-89adc425
traceparent 00-5533ade134c77437ca68011298695955-8992257e3be6524a-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--e5cf6840

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIxZTJjNzE4MDZiMWE0YTI4IiwidHIiOiI1NTMzYWRlMTM0Yzc3NDM3Y2E2ODAxMTI5ODY5NTk1NSIsInByIjowLjYwMjUxMywic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyMDA5OH19
traceparent 00-5533ade134c77437ca68011298695955-0af7ddc304d38bb0-00
tracestate 8478732@nr=0-0-8478732-572448233-0af7ddc304d38bb0-1e2c71806b1a4a28-0-0.602513-1794305820098,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--e5cf6840
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-69110d9f,team=alpha
ot-baggage-routing-key rk-69110d9f
traceparent 00-2f9c15d5c5758a132cb4097033c3ac61-63dfe1ab7e9b007f-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--70d5041f

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIyOWU0Y2NlZTA0YTA0MzdmIiwidHIiOiIyZjljMTVkNWM1NzU4YTEzMmNiNDA5NzAzM2MzYWM2MSIsInByIjowLjc0MTQ3NSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyMDEwNX19
traceparent 00-2f9c15d5c5758a132cb4097033c3ac61-fc1acf2edda51fbd-00
tracestate 8478732@nr=0-0-8478732-572448233-fc1acf2edda51fbd-29e4ccee04a0437f-0-0.741475-1794305820105,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--70d5041f
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-faacec7f,team=alpha
ot-baggage-routing-key rk-faacec7f
traceparent 00-e7bc66e6884f889dce8676d3c5abe06e-dd462d426b41bf0a-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--6ef4a276

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--6ef4a276
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-a7ba77e1,team=alpha
ot-baggage-routing-key rk-a7ba77e1
traceparent 00-7d99e1fd4ceae4945feaf2fc43ca056b-d84a408bd829fd4b-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--3e173be9

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI5ODk2NGY3ZDg5ZDczZmJhIiwidHIiOiI3ZDk5ZTFmZDRjZWFlNDk0NWZlYWYyZmM0M2NhMDU2YiIsInByIjowLjkxMDg3NSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyMDYxOX19
traceparent 00-7d99e1fd4ceae4945feaf2fc43ca056b-5b3a8b3b91ed9e42-00
tracestate 8478732@nr=0-0-8478732-572448233-5b3a8b3b91ed9e42-98964f7d89d73fba-0-0.910875-1794305820619,cptest=v1
test id
newrelic-node--http-rabbitmq--3e173be9
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-f525d069,team=alpha
ot-baggage-routing-key rk-f525d069
traceparent 00-d18523ec0a3e061b19d14078741422f7-ba47beaad459f94f-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--d9123272

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIxZGY3NDBmNmMwNDAwN2Q0IiwidHIiOiJkMTg1MjNlYzBhM2UwNjFiMTlkMTQwNzg3NDE0MjJmNyIsInByIjowLjA2MTEwMSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyMTE4M319
traceparent 00-d18523ec0a3e061b19d14078741422f7-974a351a90e2d65d-00
tracestate 8478732@nr=0-0-8478732-572448233-974a351a90e2d65d-1df740f6c04007d4-0-0.061101-1794305821183,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--d9123272
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-4cd8d673,team=alpha
ot-baggage-routing-key rk-4cd8d673
traceparent 00-15c36fec5c148ba3a102e382a1b34a84-7ba17ef8b68f276e-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--9ef76483

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI2YWRjOTg3MmI0NDgyMTc1IiwidHIiOiIxNWMzNmZlYzVjMTQ4YmEzYTEwMmUzODJhMWIzNGE4NCIsInByIjowLjgwMTE0Nywic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyMTIyMH19
traceparent 00-15c36fec5c148ba3a102e382a1b34a84-0cb1be5e3209ad0a-00
tracestate 8478732@nr=0-0-8478732-572448233-0cb1be5e3209ad0a-6adc9872b4482175-0-0.801147-1794305821220,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--9ef76483
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-0f2bbcd8,team=alpha
ot-baggage-routing-key rk-0f2bbcd8
traceparent 00-1fd684221e6d0923a0462d60fbe01d64-7f7d564ef479f56e-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--6b2f085e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--6b2f085e
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-6f58a1fd,team=alpha
ot-baggage-routing-key rk-6f58a1fd
traceparent 00-ec2e4aef0a248f0e8cfc9a16519730a1-b485895b0c1305cc-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--03cdcbc1

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI5MzgwOGYyY2VmZjdiYzlmIiwidHIiOiJlYzJlNGFlZjBhMjQ4ZjBlOGNmYzlhMTY1MTk3MzBhMSIsInByIjowLjAxNzEyLCJzYSI6ZmFsc2UsInRpIjoxNzk0MzA1ODIxMjk1fX0=
traceparent 00-ec2e4aef0a248f0e8cfc9a16519730a1-fdc47beaf1291317-00
tracestate 8478732@nr=0-0-8478732-572448233-fdc47beaf1291317-93808f2ceff7bc9f-0-0.017120-1794305821295,cptest=v1
test id
newrelic-node--grpc-rabbitmq--03cdcbc1
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-04b3a358,team=alpha
ot-baggage-routing-key rk-04b3a358
traceparent 00-061b9b9443f798c8d134414f2c161630-84631f2b7edb5e75-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--30a3f97e

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 49
content-type application/json
user-agent axios/1.20.0
test id
newrelic-node--kafka-http--30a3f97e
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-1176b185,team=alpha
ot-baggage-routing-key rk-1176b185
traceparent 00-c7a63418654f05dbeb586b6978150593-5f08d9d857a51457-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--87992d91

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
newrelic-node--kafka-grpc--87992d91
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-94fc0697,team=alpha
ot-baggage-routing-key rk-94fc0697
traceparent 00-653c7b03b014a95836dc71cf14f243aa-4ee4bfe0a80cc831-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--58a69a32

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--58a69a32
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-53509db2,team=alpha
ot-baggage-routing-key rk-53509db2
traceparent 00-2e2e0f3142bd53854e4b43ab7ffee274-f9367073c7c3d5a4-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--db13e67c

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--db13e67c
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-f093a19e,team=alpha
ot-baggage-routing-key rk-f093a19e
traceparent 00-8b98d699091b7f42bab95f576d64286c-a0422abafa8c0bfa-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--63f70d4a

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 52
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI1NTdhYTE4ODZjZGRmMGE2IiwidHIiOiI4Yjk4ZDY5OTA5MWI3ZjQyYmFiOTVmNTc2ZDY0Mjg2YyIsInByIjowLjY2NDAwOSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyMzg1MX19
traceparent 00-8b98d699091b7f42bab95f576d64286c-8d60b643c4b80588-00
tracestate 8478732@nr=0-0-8478732-572448233-8d60b643c4b80588-557aa1886cddf0a6-0-0.664009-1794305823851,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--63f70d4a
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-f2ab27e4,team=alpha
ot-baggage-routing-key rk-f2ab27e4
traceparent 00-a9567f366c5c132cacd8834a14a246d2-feae0a872bad7a2f-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--d47410c0

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI0OTkyOWNlZWExNzdhNWI3IiwidHIiOiJhOTU2N2YzNjZjNWMxMzJjYWNkODgzNGExNGEyNDZkMiIsInByIjowLjgwNDMxNiwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyNDM1M319
traceparent 00-a9567f366c5c132cacd8834a14a246d2-3d164982555bb9e4-00
tracestate 8478732@nr=0-0-8478732-572448233-3d164982555bb9e4-49929ceea177a5b7-0-0.804316-1794305824353,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--d47410c0
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-81cab28a,team=alpha
ot-baggage-routing-key rk-81cab28a
traceparent 00-6ca926629a1d76ea664ed875375308bf-57ca7d3e0be0ed29-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--34ee3c6a

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--34ee3c6a
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-7c8afa3e,team=alpha
ot-baggage-routing-key rk-7c8afa3e
traceparent 00-1db878221f9b0dd0564a61f1e5bc38ec-8e6c39a199c40c0f-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--9fe2350c

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiJkNzBmYmQ3ZTQ0NTVlNGQ0IiwidHIiOiIxZGI4NzgyMjFmOWIwZGQwNTY0YTYxZjFlNWJjMzhlYyIsInByIjowLjIwODA0NSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTgyNTM1Nn19
traceparent 00-1db878221f9b0dd0564a61f1e5bc38ec-cda9e524e6da3a62-00
tracestate 8478732@nr=0-0-8478732-572448233-cda9e524e6da3a62-d70fbd7e4455e4d4-0-0.208045-1794305825356,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--9fe2350c
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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