newrelic-node

Node.js zero-code newrelic (npm)14.4.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.4.0 14.4.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, 07:48 UTC
Harness
9b99070 · measured in backtest-newrelic-node-14.4.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.4.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-4a112bf6,team=alpha
ot-baggage-routing-key rk-4a112bf6
traceparent 00-2471cd65273b992e54e06dfd2ed1ad28-a0369394539390b7-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--afe36f0c

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-2471cd65273b992e54e06dfd2ed1ad28-35e78238b4c07fee-00
tracestate 8478732@nr=0-0-8478732-572448233--eee5fb0a44ea889d-0-0.959116-1794296880014,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--afe36f0c
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-c9cbed99,team=alpha
ot-baggage-routing-key rk-c9cbed99
traceparent 00-9d2f3aaeb5bac0743386b7a1aa341eae-d14c0219ec1251f6-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--2a71ec8a

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-9d2f3aaeb5bac0743386b7a1aa341eae-079f0c68cb83e9dc-00
tracestate 8478732@nr=0-0-8478732-572448233--718ccd1bdfb71c39-0-0.352068-1794296880019,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--2a71ec8a
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-5b462588,team=alpha
ot-baggage-routing-key rk-5b462588
traceparent 00-5c66393d3c2323c6125a3e4d90643fb8-2fc1072330516cfb-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--139a2411

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--139a2411
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-dca0fb55,team=alpha
ot-baggage-routing-key rk-dca0fb55
traceparent 00-4e26bff5bf1548d6749d31714485b455-aa992bfb7d5cc6da-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--023f946b

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

traceparent 00-4e26bff5bf1548d6749d31714485b455-b0a3e30f4e4d4fd2-00
tracestate 8478732@nr=0-0-8478732-572448233--52eb31658360103c-0-0.250812-1794296880530,cptest=v1
test id
newrelic-node--http-rabbitmq--023f946b
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-771514ea,team=alpha
ot-baggage-routing-key rk-771514ea
traceparent 00-0b96d374ac21ec8290925964d42f535d-c3a40caeb2052fe0-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--cc60756e

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-0b96d374ac21ec8290925964d42f535d-c23f66e28bdb1c1a-00
tracestate 8478732@nr=0-0-8478732-572448233--6dcbbd6a6116d689-0-0.241909-1794296881049,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--cc60756e
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-2bf8c708,team=alpha
ot-baggage-routing-key rk-2bf8c708
traceparent 00-438530cbc761dcc4512faa541f2efcda-3f0650521828e991-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--88fb2d75

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-438530cbc761dcc4512faa541f2efcda-8899b33f0da722de-00
tracestate 8478732@nr=0-0-8478732-572448233--6855334c76765d6d-0-0.109449-1794296881094,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--88fb2d75
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-1a4adc96,team=alpha
ot-baggage-routing-key rk-1a4adc96
traceparent 00-2e8fe78f2d053f6180ff8d9a12cd09bb-8309f6ef05365ea1-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--e7f0b6dd

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--e7f0b6dd
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-7046fa00,team=alpha
ot-baggage-routing-key rk-7046fa00
traceparent 00-6eeb57669c96b5341659506efd107b09-3f66a4462cf0b62c-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--727e7f91

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

traceparent 00-6eeb57669c96b5341659506efd107b09-f2e41aa174b19453-00
tracestate 8478732@nr=0-0-8478732-572448233--e6a7943d4213675a-0-0.283752-1794296881228,cptest=v1
test id
newrelic-node--grpc-rabbitmq--727e7f91
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-de3d1d2a,team=alpha
ot-baggage-routing-key rk-de3d1d2a
traceparent 00-b3cdad6180bd63db260d0657b5cb851b-366b866934cb82ff-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--727820be

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--727820be
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-bed52ba1,team=alpha
ot-baggage-routing-key rk-bed52ba1
traceparent 00-d4ab43dea01910c2f40e0c9978e3aa8b-f1d055a969ad6a45-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--4635c1c6

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--4635c1c6
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-0cb9bcfe,team=alpha
ot-baggage-routing-key rk-0cb9bcfe
traceparent 00-16644ff6930f8de663c148d85a1ab49b-6ebd74697ba8f293-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--25349166

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--25349166
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-9c5f3028,team=alpha
ot-baggage-routing-key rk-9c5f3028
traceparent 00-6324ae246c4d4e997e3fa3724e3d505b-9a0b2be2d37181fe-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--45dc05ed

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--45dc05ed
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-90ad27cf,team=alpha
ot-baggage-routing-key rk-90ad27cf
traceparent 00-232df473896b0fd9380bfd2f34e5f675-50f354b2e9595d6a-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--b800793a

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-232df473896b0fd9380bfd2f34e5f675-a42241b0f96e4452-00
tracestate 8478732@nr=0-0-8478732-572448233--70ed09f3456c78c8-0-0.620567-1794296883771,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--b800793a
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-756b03cc,team=alpha
ot-baggage-routing-key rk-756b03cc
traceparent 00-2e8d43944ef6171513d2539363dee4dd-fda9a8aa0a1d0269-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--8f911dcb

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-2e8d43944ef6171513d2539363dee4dd-aecc623b7e8960a9-00
tracestate 8478732@nr=0-0-8478732-572448233--4737f0417ca08c2d-0-0.168034-1794296884272,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--8f911dcb
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-f6fcec88,team=alpha
ot-baggage-routing-key rk-f6fcec88
traceparent 00-8af56c9d5ef561c9ec8eeb777bfeb019-b087928405f9d70f-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--e6ae0018

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--e6ae0018
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-f1f10719,team=alpha
ot-baggage-routing-key rk-f1f10719
traceparent 00-8aa44779712394f0b7412a453cbfcc68-af30b03b0de453c0-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--158f6a32

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

traceparent 00-8aa44779712394f0b7412a453cbfcc68-70313c2e77a2f4e9-00
tracestate 8478732@nr=0-0-8478732-572448233--07d10ab71906543a-0-0.983109-1794296885277,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--158f6a32
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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