newrelic-node

Node.js zero-code newrelic (npm)14.1.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 14.1.0 14.1.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:13 UTC
Harness
374f21d · measured in backtest-newrelic-node-14.1.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.1.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-ea4ea06d,team=alpha
ot-baggage-routing-key rk-ea4ea06d
traceparent 00-386abe137c85c6b01e794ebaa1845c11-e3cb4fddf6421c3b-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--8aa882f3

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-386abe137c85c6b01e794ebaa1845c11-a85c2862180b1c15-00
tracestate 8478732@nr=0-0-8478732-572448233-a85c2862180b1c15-03cfcc946283b4f7-0-0.156415-1794305594232,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--8aa882f3
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-51d34aba,team=alpha
ot-baggage-routing-key rk-51d34aba
traceparent 00-5e1de12d7de8136b849d005eaad386c0-c143b52755474430-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--d2671fb1

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-5e1de12d7de8136b849d005eaad386c0-df5706fb0b84e4a1-00
tracestate 8478732@nr=0-0-8478732-572448233-df5706fb0b84e4a1-adea80a26dd7cafa-0-0.338294-1794305594237,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--d2671fb1
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-879ab012,team=alpha
ot-baggage-routing-key rk-879ab012
traceparent 00-d8b1e79de49960bf29bae528eac9c679-c2bdfd19fd7a4397-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--b933584b

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--b933584b
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-0d85aaa8,team=alpha
ot-baggage-routing-key rk-0d85aaa8
traceparent 00-c4b051df679cc9964702881ec5018645-f0257e7ff031eb80-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--0b3a4e78

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

traceparent 00-c4b051df679cc9964702881ec5018645-bd122ead6a91dd93-00
tracestate 8478732@nr=0-0-8478732-572448233-bd122ead6a91dd93-a06220eb1656eb08-0-0.862809-1794305594745,cptest=v1
test id
newrelic-node--http-rabbitmq--0b3a4e78
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-0b2d6b19,team=alpha
ot-baggage-routing-key rk-0b2d6b19
traceparent 00-e79d6aa7c37be8495e22c8931376daaf-def82f2fe07ba6b1-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--4ffc9eb3

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-e79d6aa7c37be8495e22c8931376daaf-04707907d851f416-00
tracestate 8478732@nr=0-0-8478732-572448233-04707907d851f416-c814bf5a9f322899-0-0.990689-1794305595260,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--4ffc9eb3
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-b4651c3b,team=alpha
ot-baggage-routing-key rk-b4651c3b
traceparent 00-1da30c5a92f72186fce56f82c9464e26-86fc244fb0e942e5-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--fa10f405

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-1da30c5a92f72186fce56f82c9464e26-dd69ee5671f773b5-00
tracestate 8478732@nr=0-0-8478732-572448233-dd69ee5671f773b5-3860f20d3aab8886-0-0.354282-1794305595302,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--fa10f405
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-dab01fc4,team=alpha
ot-baggage-routing-key rk-dab01fc4
traceparent 00-325a0bbbbe88bcbe62a39344fe38db0f-0b9dca001e53afb3-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--ed51514e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--ed51514e
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-b0ccd2eb,team=alpha
ot-baggage-routing-key rk-b0ccd2eb
traceparent 00-cb650c33ad8d1db4784f8e41699b8b49-5606c5cf75ab3cc1-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--e50fa978

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

traceparent 00-cb650c33ad8d1db4784f8e41699b8b49-1cc523e19f7c6a18-00
tracestate 8478732@nr=0-0-8478732-572448233-1cc523e19f7c6a18-628d288a647c7532-0-0.714245-1794305595382,cptest=v1
test id
newrelic-node--grpc-rabbitmq--e50fa978
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-de1ae888,team=alpha
ot-baggage-routing-key rk-de1ae888
traceparent 00-82646909216b1785b84e8493352abe49-4c3e33836d01d042-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--f417fae2

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--f417fae2
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-d624476b,team=alpha
ot-baggage-routing-key rk-d624476b
traceparent 00-c19909221742c779eb0aa84e234d391b-13631e0eb0a10780-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--9525ae42

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--9525ae42
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-6e91180c,team=alpha
ot-baggage-routing-key rk-6e91180c
traceparent 00-39aeda6b9f4f5291cdc6b33c42859750-474aadffcd8ed124-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--f8e4cf7b

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--f8e4cf7b
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-8f183758,team=alpha
ot-baggage-routing-key rk-8f183758
traceparent 00-5efb4ad3211d342060008764618fdf89-05c3ba2d2038c1c3-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--fdb8a0a5

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--fdb8a0a5
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-2166b566,team=alpha
ot-baggage-routing-key rk-2166b566
traceparent 00-a290138d020345eb43dbb4c3eb07ff19-0f8b76860cc7f1e6-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--c7dce75b

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
traceparent 00-a290138d020345eb43dbb4c3eb07ff19-3b1f1a2c6b21d560-00
tracestate 8478732@nr=0-0-8478732-572448233-3b1f1a2c6b21d560-7498b2a6dbb5572d-0-0.973358-1794305598427,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--c7dce75b
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-1a041f2c,team=alpha
ot-baggage-routing-key rk-1a041f2c
traceparent 00-f98ceaf5c715895fe297cff25a9781ac-318d820ad83103b5-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--a908bee9

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-f98ceaf5c715895fe297cff25a9781ac-20bb2f8261081f73-00
tracestate 8478732@nr=0-0-8478732-572448233-20bb2f8261081f73-0c7d4eca09f8a9af-0-0.757434-1794305598928,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--a908bee9
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-ee3292b5,team=alpha
ot-baggage-routing-key rk-ee3292b5
traceparent 00-529bc97ae28b2575f6826986439539de-7806b0e25623d0e4-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--7cd3ed07

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--7cd3ed07
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-2d36b671,team=alpha
ot-baggage-routing-key rk-2d36b671
traceparent 00-b54c8795ca662bfd40dcc6912294fdd9-d9a6985132fe43e9-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--01f25992

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

traceparent 00-b54c8795ca662bfd40dcc6912294fdd9-ead712b40e42d7de-00
tracestate 8478732@nr=0-0-8478732-572448233-ead712b40e42d7de-dc12b78a7c84d9c5-0-0.426848-1794305599930,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--01f25992
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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