newrelic-node

Node.js zero-code newrelic (npm)14.13.0

attach --require newrelic

18/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

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.

216 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.

104 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.

63 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 in this run

Tracer
newrelic 14.13.0 this version 14.13.0 on npm github
Runtime
node v26.13.1
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
23 Nov 2026, 13:42 UTC
Harness
0ac8158 · run run-2026-11-24.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-11-24.1.json → variants[id = "newrelic-node"]

Libraries

express5.3.0
grpc-js1.14.7
http_clientaxios 1.21.1
kafkajs2.2.4
rabbitmqamqplib 2.4.0

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-bb20c65e,team=alpha
ot-baggage-routing-key rk-bb20c65e
traceparent 00-39294a1f29f55a01bf0d374b21bdf47d-ec2f185444b029f2-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--6aba3412

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-39294a1f29f55a01bf0d374b21bdf47d-42a6260fc77e58cd-00
tracestate 8478732@nr=0-0-8478732-572448233--a6e1bbd8c81d0af9-0-0.296618-1795441326211,cptest=v1
user-agent axios/1.21.1
test id
newrelic-node--http-http--6aba3412
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-43185100,team=alpha
ot-baggage-routing-key rk-43185100
traceparent 00-6bb3ad45da12fb79cb88075704d23d22-d55f751ca55fc1e3-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--f7946d38

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-6bb3ad45da12fb79cb88075704d23d22-a85c32dc08a8fc83-00
tracestate 8478732@nr=0-0-8478732-572448233--02e08abb6883841e-0-0.791965-1795441326217,cptest=v1
user-agent grpc-node-js/1.14.7
test id
newrelic-node--http-grpc--f7946d38
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-f2b3275b,team=alpha
ot-baggage-routing-key rk-f2b3275b
traceparent 00-d9a13d932f48ac0a55282ab896848a60-b155ef7f54a75f48-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--017b976f

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--017b976f
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-1b3de716,team=alpha
ot-baggage-routing-key rk-1b3de716
traceparent 00-7cbe91afb51d6c41fe3589596057b157-ba5273f42f1048b0-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--4e466aa8

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

traceparent 00-7cbe91afb51d6c41fe3589596057b157-64e38d33b8f074f9-00
tracestate 8478732@nr=0-0-8478732-572448233--0f1226ebf167076c-0-0.584402-1795441326235,cptest=v1
test id
newrelic-node--http-rabbitmq--4e466aa8
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-ed288f64,team=alpha
ot-baggage-routing-key rk-ed288f64
traceparent 00-2920904b785b734fa552ee8446e4dc41-f4d067e881f9cf15-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--935b8bc0

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-2920904b785b734fa552ee8446e4dc41-fd05cbf682bf0a78-00
tracestate 8478732@nr=0-0-8478732-572448233--4c36606eb787d2c4-0-0.210780-1795441326755,cptest=v1
user-agent axios/1.21.1
test id
newrelic-node--grpc-http--935b8bc0
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-ff418729,team=alpha
ot-baggage-routing-key rk-ff418729
traceparent 00-db2e063fac127083f59b9174777bdc25-2c7d3dee23b85f62-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--a4952a0e

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-db2e063fac127083f59b9174777bdc25-a97d1c53abc0f3d8-00
tracestate 8478732@nr=0-0-8478732-572448233--084642f57fdb07eb-0-0.137867-1795441326777,cptest=v1
user-agent grpc-node-js/1.14.7
test id
newrelic-node--grpc-grpc--a4952a0e
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-b5805b2b,team=alpha
ot-baggage-routing-key rk-b5805b2b
traceparent 00-145774073d04dfbf41708e9cf63c89ce-fdde0ed20f970762-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--771cd318

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--771cd318
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-a301ec80,team=alpha
ot-baggage-routing-key rk-a301ec80
traceparent 00-345520cd0e58157a1d43921609335bac-e438c06d0af67322-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--7073b336

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

traceparent 00-345520cd0e58157a1d43921609335bac-320cabb3e390b7b4-00
tracestate 8478732@nr=0-0-8478732-572448233--2b0ebb263a562cf4-0-0.438293-1795441326815,cptest=v1
test id
newrelic-node--grpc-rabbitmq--7073b336
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-34cc8392,team=alpha
ot-baggage-routing-key rk-34cc8392
traceparent 00-f917883112b4f5f51faa57c4523608bd-8f58b6245617a642-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--6e036512

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.21.1
test id
newrelic-node--kafka-http--6e036512
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-d2272169,team=alpha
ot-baggage-routing-key rk-d2272169
traceparent 00-41a8754459ccc5d68253f11f65fdb968-1b0205c060bcaea0-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--6ffdf598

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.7
test id
newrelic-node--kafka-grpc--6ffdf598
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-9d676ece,team=alpha
ot-baggage-routing-key rk-9d676ece
traceparent 00-ea5a9ac94c152d2320581060cc93c658-a8b4fe3a418878b8-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--f83d20c5

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--f83d20c5
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-fb06c9db,team=alpha
ot-baggage-routing-key rk-fb06c9db
traceparent 00-cd89510f3ecb4731f4a855c1a11ad2d7-a284dae048b84d58-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--7c52809b

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--7c52809b
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-37e5177d,team=alpha
ot-baggage-routing-key rk-37e5177d
traceparent 00-b1ae41d4822f57872deb2fa2afeedd54-995e7779c1257935-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--11c4cb9b

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-b1ae41d4822f57872deb2fa2afeedd54-720ebd148d59e0ea-00
tracestate 8478732@nr=0-0-8478732-572448233--e4b73f36f3bf9126-0-0.198297-1795441329860,cptest=v1
user-agent axios/1.21.1
test id
newrelic-node--rabbitmq-http--11c4cb9b
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-ff166dda,team=alpha
ot-baggage-routing-key rk-ff166dda
traceparent 00-6be915c1d2717865e71634be66aa9b27-f299856e317dca93-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--640d30aa

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-6be915c1d2717865e71634be66aa9b27-e852adccb3b2825e-00
tracestate 8478732@nr=0-0-8478732-572448233--749b910f44f4d342-0-0.854346-1795441330360,cptest=v1
user-agent grpc-node-js/1.14.7
test id
newrelic-node--rabbitmq-grpc--640d30aa
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-eff8d835,team=alpha
ot-baggage-routing-key rk-eff8d835
traceparent 00-7d01c34abce17c064d73c000c0635658-06279c1415a3710b-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--41b65ce1

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--41b65ce1
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-162557db,team=alpha
ot-baggage-routing-key rk-162557db
traceparent 00-ff9a358165e8c6322f6c31dabb42d6de-6a31e7ee8c41014a-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--a91a9c06

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

traceparent 00-ff9a358165e8c6322f6c31dabb42d6de-9d3bf7a64b86a424-00
tracestate 8478732@nr=0-0-8478732-572448233--81242058bdf601e0-0-0.452842-1795441331362,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--a91a9c06
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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