newrelic-java

Java zero-code newrelic-agent9.5.0

attach -javaagent:newrelic.jar

12/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 Java: Kafka DT header injection is opt-in via a class_transformer setting

config kafka-clients instrumentation is telemetry-only by default; header injection requires enabling the kafka-clients-spans-0.11.0.0 module in newrelic.yml.

On newrelic-agent 9.4.0 with default configuration, every *->kafka leg injects nothing. New Relic's Kafka docs make DT header injection opt-in: class_transformer: com.newrelic.instrumentation.kafka-clients-spans-0.11.0.0: enabled: true, warning that "the instrumentation adds a 150 to 200 byte payload to message headers… we recommend testing… before enabling them in production". The module exists in the agent repository.

The harness has not measured the opt-in, so whether it makes these cells pass is documented, not verified. kafka->kafka and rabbitmq->kafka also fail on the consume side (see newrelic-java-messaging-inbound-never-accepted).

8 cells affected

newrelic-java-kafka-dt-headers-opt-in

New Relic Java: Kafka consumers and spring-rabbit listeners never accept inbound DT headers

open No spring-rabbit module: DT accept runs on the AMQP connection thread, not the listener's thread; the Kafka consumer instrumentation never accepts DT headers.

Every messaging-inbound row fails on newrelic-agent 9.4.0: kafka->* and rabbitmq->* outbound calls carry no headers at all (no transaction is active, so nothing is injected). spring-rabbit publish injects fine (http->rabbitmq, grpc->rabbitmq pass).

Mechanism found in source: the agent has only rabbit-amqp-2.7.0/5.0.0 and spring-kafka modules (no spring-rabbit module at all). DT accept is woven around Consumer.handleDelivery inside a transaction on the AMQP connection thread, while spring-rabbit's listener container processes the message on a different thread, outside that transaction. The Kafka consumer never accepts either.

Workaround: in the listener, start a transaction with the New Relic agent API and accept the message headers into it manually. We found no upstream issue covering either gap.

16 cells affected

newrelic-java-messaging-inbound-never-accepted

Versions in this run

Tracer
com.newrelic.agent.java:newrelic-agent 9.5.0 this version 9.5.0 on maven github
Runtime
java 25.0.5.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
-javaagent:newrelic.jar
Relay source
relays/java
Ran at
30 Nov 2026, 06:44 UTC
Harness
b33e402 · run run-2026-11-30
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-11-30.json → variants[id = "newrelic-java"]

Libraries

grpcgrpc-java
http-clientRestTemplate (HttpURLConnection)
kafkaspring-kafka
kafka-clients4.4.0
rabbitmqspring-rabbit (amqp-client 5.37.1)
spring-boot4.2.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 native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-958bf43c,team=alpha
ot-baggage-routing-key rk-958bf43c
traceparent 00-a8ac546c185b2f1877bebb7f84ae0db7-8856854c100b5d49-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-http--f8eaf661

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjg3MzQzNiwidHgiOiIwZDhiNGU4OTU2NTg3N2M4IiwidGkiOjE3OTYwMjEwNzUzNTEsInR5IjoiQXBwIiwiaWQiOiI3NmQ0NTIxMTY1ZDY1NDgyIiwidHIiOiJhOGFjNTQ2YzE4NWIyZjE4NzdiZWJiN2Y4NGFlMGRiNyIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-a8ac546c185b2f1877bebb7f84ae0db7-76d4521165d65482-01
tracestate 8478732@nr=0-0-8478732-572444361--0d8b4e89565877c8-1-2.873436-1796021075351,cptest=v1
user-agent Java/25.0.5.1
test id
newrelic-java--http-http--f8eaf661
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP gRPC baggage tracestate traceparent ot-baggage delivered via grpc native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-bd29f4e6,team=alpha
ot-baggage-routing-key rk-bd29f4e6
traceparent 00-19e1e2a0d818900a3a209b54a1b98a3d-1a9e1bcaca49187b-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-grpc--c753e3e8

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjEwODczNSwidHgiOiI4ZmQ5OWFiNWYzZWMyNDFiIiwidGkiOjE3OTYwMjEwNzUzNjEsInR5IjoiQXBwIiwiaWQiOiI5MjhhOGFkNDY3YTQ4ZjRlIiwidHIiOiIxOWUxZTJhMGQ4MTg5MDBhM2EyMDliNTRhMWI5OGEzZCIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-19e1e2a0d818900a3a209b54a1b98a3d-928a8ad467a48f4e-01
tracestate 8478732@nr=0-0-8478732-572444361--8fd99ab5f3ec241b-1-2.18735-1796021075361,cptest=v1
user-agent grpc-java-netty/1.85.1
test id
newrelic-java--http-grpc--c753e3e8
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-f3e86071,team=alpha
ot-baggage-routing-key rk-f3e86071
traceparent 00-c61c773363ee0be505616e61ddf2f9fb-af08a4fa0b6f570e-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-kafka--cb1e9e21

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--http-kafka--cb1e9e21
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-f4754dcf,team=alpha
ot-baggage-routing-key rk-f4754dcf
traceparent 00-5cc4539d80ffe34d9f9344f1c99a6897-931ae993d5a71388-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-rabbitmq--2e9ed29d

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

newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjk4NDEzNiwidHgiOiIzNzM5MTQyMTA0YjhhMTc0IiwidGkiOjE3OTYwMjEwNzU4NzYsInR5IjoiQXBwIiwiaWQiOiIyNzFlYWM5YWI1MDQ2NmM1IiwidHIiOiI1Y2M0NTM5ZDgwZmZlMzRkOWY5MzQ0ZjFjOTlhNjg5NyIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-5cc4539d80ffe34d9f9344f1c99a6897-271eac9ab50466c5-01
tracestate 8478732@nr=0-0-8478732-572444361--3739142104b8a174-1-2.984136-1796021075876,cptest=v1
test id
newrelic-java--http-rabbitmq--2e9ed29d
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http native: present_same_trace

Seeded on the inbound gRPC metadata

baggage routing-key=rk-1dddf36e,team=alpha
ot-baggage-routing-key rk-1dddf36e
traceparent 00-1fd1b9d8ffb991fb4d403e09e8813773-d62cda9fffe53413-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-http--37123e18

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjAzMjE2NywidHgiOiJlOTM4YWJlYmI2ZWQ0MWUxIiwidGkiOjE3OTYwMjEwNzU5MzQsInR5IjoiQXBwIiwiaWQiOiJiMThkZGYyMThkMjIwYzA4IiwidHIiOiIxZmQxYjlkOGZmYjk5MWZiNGQ0MDNlMDllODgxMzc3MyIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-1fd1b9d8ffb991fb4d403e09e8813773-b18ddf218d220c08-01
tracestate 8478732@nr=0-0-8478732-572444361--e938abebb6ed41e1-1-2.032167-1796021075934,cptest=v1
user-agent Java/25.0.5.1
test id
newrelic-java--grpc-http--37123e18
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc native: present_same_trace

Seeded on the inbound gRPC metadata

baggage routing-key=rk-4fdbb542,team=alpha
ot-baggage-routing-key rk-4fdbb542
traceparent 00-44835df30e6dd457978407d21b86e7f5-335192836ff0cd81-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-grpc--c0366bf5

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjY3MzU5OSwidHgiOiIzMTNiYjFiYjM0ZDhhNTlhIiwidGkiOjE3OTYwMjEwNzYwMTMsInR5IjoiQXBwIiwiaWQiOiIwZGY4N2QyMmNmMDYxN2I5IiwidHIiOiI0NDgzNWRmMzBlNmRkNDU3OTc4NDA3ZDIxYjg2ZTdmNSIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-44835df30e6dd457978407d21b86e7f5-0df87d22cf0617b9-01
tracestate 8478732@nr=0-0-8478732-572444361--313bb1bb34d8a59a-1-2.673599-1796021076013,cptest=v1
user-agent grpc-java-netty/1.85.1
test id
newrelic-java--grpc-grpc--c0366bf5
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-5d4bdf72,team=alpha
ot-baggage-routing-key rk-5d4bdf72
traceparent 00-5934cfa860d0cedb15e1634064b1787f-782401f3c8b86e57-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-kafka--94b44c46

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--grpc-kafka--94b44c46
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound gRPC metadata

baggage routing-key=rk-d41542f4,team=alpha
ot-baggage-routing-key rk-d41542f4
traceparent 00-e6be97701e2efab7224ac0945b24b72a-1ceeffa9ed9c356a-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-rabbitmq--f79eee02

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

newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjMwNjQzMywidHgiOiJlZmQ4NDU1NDg0MmI1ZDFjIiwidGkiOjE3OTYwMjEwNzY2NzcsInR5IjoiQXBwIiwiaWQiOiI5ZTM4ZTU4ZjcwYTUxY2Y5IiwidHIiOiJlNmJlOTc3MDFlMmVmYWI3MjI0YWMwOTQ1YjI0YjcyYSIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-e6be97701e2efab7224ac0945b24b72a-9e38e58f70a51cf9-01
tracestate 8478732@nr=0-0-8478732-572444361--efd84554842b5d1c-1-2.36433-1796021076677,cptest=v1
test id
newrelic-java--grpc-rabbitmq--f79eee02
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-b91308dd,team=alpha
ot-baggage-routing-key rk-b91308dd
traceparent 00-becebbfb838d0e17b9315df7d01c93ba-6d7c55477eef039d-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-http--03e34513

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
user-agent Java/25.0.5.1
test id
newrelic-java--kafka-http--03e34513
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-d73c8f8d,team=alpha
ot-baggage-routing-key rk-d73c8f8d
traceparent 00-76bcd4ab99dca459161b6737882186ac-952c22545eb54be0-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-grpc--b82a3905

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
user-agent grpc-java-netty/1.85.1
test id
newrelic-java--kafka-grpc--b82a3905
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-6c986817,team=alpha
ot-baggage-routing-key rk-6c986817
traceparent 00-c5452b0d4a20159d5d375bda569a38ba-698ffdb1b7d38dc4-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-kafka--76d1bfeb

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--kafka-kafka--76d1bfeb
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-0b142ae5,team=alpha
ot-baggage-routing-key rk-0b142ae5
traceparent 00-2cbe44d053f10e63bcbb95f988ba5abf-38b5311194ef24e4-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-rabbitmq--c9225732

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

No headers observed.

test id
newrelic-java--kafka-rabbitmq--c9225732
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-a2e996c0,team=alpha
ot-baggage-routing-key rk-a2e996c0
traceparent 00-160731254f6b4999102332dd74a2c78b-b5b9a9dae23d4982-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-http--4f7c9281

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
user-agent Java/25.0.5.1
test id
newrelic-java--rabbitmq-http--4f7c9281
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-1a9b0dbc,team=alpha
ot-baggage-routing-key rk-1a9b0dbc
traceparent 00-c30cacb26ed129b2732a1b056a4674c3-9611b9e9f30b464e-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-grpc--29ea067f

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
user-agent grpc-java-netty/1.85.1
test id
newrelic-java--rabbitmq-grpc--29ea067f
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-d7702a0b,team=alpha
ot-baggage-routing-key rk-d7702a0b
traceparent 00-2c1dc96972216de17ac7f99210cc0fb2-56bcb6777fa49dd4-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-kafka--37feee38

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--rabbitmq-kafka--37feee38
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-1aa5b241,team=alpha
ot-baggage-routing-key rk-1aa5b241
traceparent 00-fc21a0675efebacc1b67a711d4987948-e8e72623cbf4f434-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-rabbitmq--3c3b3972

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

No headers observed.

test id
newrelic-java--rabbitmq-rabbitmq--3c3b3972
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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