newrelic-node

Node.js zero-code newrelic (npm)14.3.3

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.3.3 14.3.3 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, 08:27 UTC
Harness
9b99070 · measured in backtest-newrelic-node-14.3.3
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.3.3.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-8899f34a,team=alpha
ot-baggage-routing-key rk-8899f34a
traceparent 00-7775a9af3a5948ad0e6717d59597d8f2-74c859949f5c9742-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--28ebfe4c

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-7775a9af3a5948ad0e6717d59597d8f2-eb81d430fcccda20-00
tracestate 8478732@nr=0-0-8478732-572448233--cdbe19a805291852-0-0.313008-1794299268262,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--28ebfe4c
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-0b8211c1,team=alpha
ot-baggage-routing-key rk-0b8211c1
traceparent 00-eb2b9b35395888dcbb6d9a32c906c972-bae1c71d9d6b69b3-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--74a3d5c1

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-eb2b9b35395888dcbb6d9a32c906c972-3c79f2dc15c06358-00
tracestate 8478732@nr=0-0-8478732-572448233--5d35641e83ff5c60-0-0.441479-1794299268271,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--74a3d5c1
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-c51ac455,team=alpha
ot-baggage-routing-key rk-c51ac455
traceparent 00-fd1ac11bea3814b3c6bf9cfede1ef277-9116a768ae57365f-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--450f5f4a

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--450f5f4a
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-1e14ac74,team=alpha
ot-baggage-routing-key rk-1e14ac74
traceparent 00-e4508a979b9ea8c712c556907bed7197-4611d6f8e98bebfa-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--159c5ba8

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

traceparent 00-e4508a979b9ea8c712c556907bed7197-79f7d4da2b8f0aa5-00
tracestate 8478732@nr=0-0-8478732-572448233--8885c87ac810b799-0-0.035081-1794299268288,cptest=v1
test id
newrelic-node--http-rabbitmq--159c5ba8
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-ecc00c21,team=alpha
ot-baggage-routing-key rk-ecc00c21
traceparent 00-944670b01740522f281038c773bac7c4-81289d14bd3f596f-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--d6424539

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-944670b01740522f281038c773bac7c4-b239f0f42f3f259d-00
tracestate 8478732@nr=0-0-8478732-572448233--555b86d4465b50d2-0-0.944426-1794299268802,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--d6424539
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-21cc64af,team=alpha
ot-baggage-routing-key rk-21cc64af
traceparent 00-a4141d59f5b66c44cbfda13ba0b4d030-b44072ca10c89cdc-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--46077cd1

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-a4141d59f5b66c44cbfda13ba0b4d030-aeb946d6046c84e6-00
tracestate 8478732@nr=0-0-8478732-572448233--a882593d6c6ee196-0-0.196993-1794299268818,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--46077cd1
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-d9cd5962,team=alpha
ot-baggage-routing-key rk-d9cd5962
traceparent 00-a8f220437c9d78db3b74cdd3e03a611b-71e5f9a007ea5481-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--19b49c63

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--19b49c63
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-740079b5,team=alpha
ot-baggage-routing-key rk-740079b5
traceparent 00-71c2b232da4878c276eeb29444711cf5-8afcb5de05b99e2e-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--bb0f20b1

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

traceparent 00-71c2b232da4878c276eeb29444711cf5-2cbf8de3710c728a-00
tracestate 8478732@nr=0-0-8478732-572448233--8add01fda5e443c3-0-0.316296-1794299268905,cptest=v1
test id
newrelic-node--grpc-rabbitmq--bb0f20b1
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-cd57a98a,team=alpha
ot-baggage-routing-key rk-cd57a98a
traceparent 00-d8ee6b6d80a0b225d5294b4281d0c6cb-6e7fe1025e80357d-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--bcae95f5

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--bcae95f5
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-d7235589,team=alpha
ot-baggage-routing-key rk-d7235589
traceparent 00-85b6615b0daf003dd5ef16d3af87e8dc-da1ca6264980199f-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--119f8777

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--119f8777
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-887dfab3,team=alpha
ot-baggage-routing-key rk-887dfab3
traceparent 00-00b02c8b5f5239a43a2739370869be3d-608817e8081cfc79-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--2a574297

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--2a574297
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-85252d67,team=alpha
ot-baggage-routing-key rk-85252d67
traceparent 00-6d6aa3e4bde70d62f5f25ba6e154ec38-8585a46f3c252f23-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--3feeec55

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--3feeec55
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-aceff5b8,team=alpha
ot-baggage-routing-key rk-aceff5b8
traceparent 00-c1c44c4da7535383b67e0e2b27aca5f2-2de075e22cbc0bb5-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--d791aa8d

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-c1c44c4da7535383b67e0e2b27aca5f2-cb5738576c60c517-00
tracestate 8478732@nr=0-0-8478732-572448233--73d8db0e24029a27-0-0.463242-1794299271450,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--d791aa8d
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-6eface05,team=alpha
ot-baggage-routing-key rk-6eface05
traceparent 00-00c45c8e9d2a4fc1e73b87ff1b7a2886-6d9ff244f07dcb90-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--61136f70

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-00c45c8e9d2a4fc1e73b87ff1b7a2886-06a072e67d3cd058-00
tracestate 8478732@nr=0-0-8478732-572448233--3eb2805f5be912e6-0-0.501703-1794299271953,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--61136f70
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-fb4f8ea3,team=alpha
ot-baggage-routing-key rk-fb4f8ea3
traceparent 00-5aca64f1dcc7c5ff4a98f27a3d3314ea-fe569c2bce1d6e14-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--956be1b2

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--956be1b2
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-26c7b2e5,team=alpha
ot-baggage-routing-key rk-26c7b2e5
traceparent 00-8a97d1414709e9998abe8a07acd29be6-8ec21cd00c04372d-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--68b45a89

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

traceparent 00-8a97d1414709e9998abe8a07acd29be6-347e0098dbb770b1-00
tracestate 8478732@nr=0-0-8478732-572448233--8409039c2c2ece32-0-0.778415-1794299272955,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--68b45a89
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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