newrelic-node

Node.js zero-code newrelic (npm)13.19.1

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.19.1 13.19.1 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:19 UTC
Harness
374f21d · measured in backtest-newrelic-node-13.19.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
13.19.1.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-2605e525,team=alpha
ot-baggage-routing-key rk-2605e525
traceparent 00-2752ad7d50a7ca71835c03082e40e762-e3b541de2827b4ab-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--bc34ae59

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI3ZjE0MGNlODczNjk0Zjk4IiwidHIiOiIyNzUyYWQ3ZDUwYTdjYTcxODM1YzAzMDgyZTQwZTc2MiIsInByIjowLjY5NjM2OCwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1MzY1MH19
traceparent 00-2752ad7d50a7ca71835c03082e40e762-f79b49b06e818681-00
tracestate 8478732@nr=0-0-8478732-572448233-f79b49b06e818681-7f140ce873694f98-0-0.696368-1794305953650,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--bc34ae59
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-8311e0dc,team=alpha
ot-baggage-routing-key rk-8311e0dc
traceparent 00-97f67c249e914799230c8961d189607c-fea6e492ba1fa4dd-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--34149ae3

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI3N2UyYjMzMzAyMDE2ZTdhIiwidHIiOiI5N2Y2N2MyNDllOTE0Nzk5MjMwYzg5NjFkMTg5NjA3YyIsInByIjowLjA5NzIyMiwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1MzY2Mn19
traceparent 00-97f67c249e914799230c8961d189607c-d5a462d6ccb3b3cf-00
tracestate 8478732@nr=0-0-8478732-572448233-d5a462d6ccb3b3cf-77e2b33302016e7a-0-0.097222-1794305953662,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--34149ae3
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-6fd6fee3,team=alpha
ot-baggage-routing-key rk-6fd6fee3
traceparent 00-3e783abd73325192ca5cd4d7c19f216d-e56ac30382ef4b91-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--f3b3430f

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--f3b3430f
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-22a6894a,team=alpha
ot-baggage-routing-key rk-22a6894a
traceparent 00-54b3904912fa300698e3bc4e278969ad-aa883ea7ac5d21ed-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--30c212e3

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIxM2JiYzAwNWU4NDY2YjFhIiwidHIiOiI1NGIzOTA0OTEyZmEzMDA2OThlM2JjNGUyNzg5NjlhZCIsInByIjowLjIxMTMyOSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1NDE3Nn19
traceparent 00-54b3904912fa300698e3bc4e278969ad-1cb1b0d38445bd68-00
tracestate 8478732@nr=0-0-8478732-572448233-1cb1b0d38445bd68-13bbc005e8466b1a-0-0.211329-1794305954176,cptest=v1
test id
newrelic-node--http-rabbitmq--30c212e3
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-773b546f,team=alpha
ot-baggage-routing-key rk-773b546f
traceparent 00-823b4a3563b1985137834f44758ed4e4-ce1f0ead28e0b635-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--3371a1a8

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiJhNTY4MjRlODU5MjZkZmFkIiwidHIiOiI4MjNiNGEzNTYzYjE5ODUxMzc4MzRmNDQ3NThlZDRlNCIsInByIjowLjc3MzA1NSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1NDcxNn19
traceparent 00-823b4a3563b1985137834f44758ed4e4-e4bc955ab3a1d046-00
tracestate 8478732@nr=0-0-8478732-572448233-e4bc955ab3a1d046-a56824e85926dfad-0-0.773055-1794305954716,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--3371a1a8
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-0f288288,team=alpha
ot-baggage-routing-key rk-0f288288
traceparent 00-9ac6704a98866c3b9b7f27c5dae9c1c2-d69d2df2555cb76a-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--7bc94600

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiJjOTQwOTQ3ODI2MWUzYjJkIiwidHIiOiI5YWM2NzA0YTk4ODY2YzNiOWI3ZjI3YzVkYWU5YzFjMiIsInByIjowLjk5NzUwMiwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1NDcyOX19
traceparent 00-9ac6704a98866c3b9b7f27c5dae9c1c2-68b50ed7ee0debdf-00
tracestate 8478732@nr=0-0-8478732-572448233-68b50ed7ee0debdf-c9409478261e3b2d-0-0.997502-1794305954729,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--7bc94600
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-faa79505,team=alpha
ot-baggage-routing-key rk-faa79505
traceparent 00-8bf9a3f075fdd889ac24ffec02bf2331-dfefd3ed7566283c-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--615b60d1

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--615b60d1
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-bb737538,team=alpha
ot-baggage-routing-key rk-bb737538
traceparent 00-4740213fca0c32e91ee543b34893d2fb-a5542cf8efa1d7e7-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--38f00428

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI0MGRhZWY0OTQ1MDNiNzNhIiwidHIiOiI0NzQwMjEzZmNhMGMzMmU5MWVlNTQzYjM0ODkzZDJmYiIsInByIjowLjc4MDI3MSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1NTI1OH19
traceparent 00-4740213fca0c32e91ee543b34893d2fb-22a838f459e1629f-00
tracestate 8478732@nr=0-0-8478732-572448233-22a838f459e1629f-40daef494503b73a-0-0.780271-1794305955258,cptest=v1
test id
newrelic-node--grpc-rabbitmq--38f00428
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-f9c1d675,team=alpha
ot-baggage-routing-key rk-f9c1d675
traceparent 00-b0d1339caebb3bfd10f757d4f7bcdfb8-2e9d99d65b5e3d91-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--a02936ef

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--a02936ef
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-861c94d1,team=alpha
ot-baggage-routing-key rk-861c94d1
traceparent 00-4213a13ef3b835fc9bd8ed49344e831b-b787e6f3585e6fe9-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--9be3845e

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--9be3845e
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-0022dfaa,team=alpha
ot-baggage-routing-key rk-0022dfaa
traceparent 00-c4f6dc3778cca5ca6acde8d9d7202c8f-50834f4e5d171743-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--6d6d63c1

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--6d6d63c1
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-77115dad,team=alpha
ot-baggage-routing-key rk-77115dad
traceparent 00-63da905a1d2aba581742fad3520105ae-2e3177ed6b892dff-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--6c8a6f97

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--6c8a6f97
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-b8f90f16,team=alpha
ot-baggage-routing-key rk-b8f90f16
traceparent 00-bb65194731623cbae593ae02c729408a-1bffc89f746d471f-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--325209ab

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIwODJkYTRlNmJkYWM3ZGZkIiwidHIiOiJiYjY1MTk0NzMxNjIzY2JhZTU5M2FlMDJjNzI5NDA4YSIsInByIjowLjQyODEwMSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1NzgxNn19
traceparent 00-bb65194731623cbae593ae02c729408a-b1aad8abb036cc9e-00
tracestate 8478732@nr=0-0-8478732-572448233-b1aad8abb036cc9e-082da4e6bdac7dfd-0-0.428101-1794305957816,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--325209ab
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-26d5e4de,team=alpha
ot-baggage-routing-key rk-26d5e4de
traceparent 00-b394935be9f6d66ed5a01b95b4c2c617-53a4e214c23a4698-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--fb97ff2f

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIzNDY0NzkyZmJjM2I4YTZmIiwidHIiOiJiMzk0OTM1YmU5ZjZkNjZlZDVhMDFiOTViNGMyYzYxNyIsInByIjowLjY0MzUyOCwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1ODMxN319
traceparent 00-b394935be9f6d66ed5a01b95b4c2c617-c3ad00aaac8c3558-00
tracestate 8478732@nr=0-0-8478732-572448233-c3ad00aaac8c3558-3464792fbc3b8a6f-0-0.643528-1794305958317,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--fb97ff2f
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-a605b104,team=alpha
ot-baggage-routing-key rk-a605b104
traceparent 00-6d72fe21e12e62a785268e5f265d76e1-8dbb208600555931-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--41c721f6

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--41c721f6
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-045757a6,team=alpha
ot-baggage-routing-key rk-045757a6
traceparent 00-aa3c3ce44d1f1b03627d13d039d532c0-3951ee8ae2383065-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--894947cb

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI3MzY3NTc2NTI2MTgyYWQ2IiwidHIiOiJhYTNjM2NlNDRkMWYxYjAzNjI3ZDEzZDAzOWQ1MzJjMCIsInByIjowLjgyMjQwMiwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNTk1OTMyMX19
traceparent 00-aa3c3ce44d1f1b03627d13d039d532c0-f7c68e30d52d0509-00
tracestate 8478732@nr=0-0-8478732-572448233-f7c68e30d52d0509-7367576526182ad6-0-0.822402-1794305959321,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--894947cb
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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