newrelic-ruby

Ruby init-only newrelic_rpm9.10.0

attach require 'newrelic_rpm'

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

Not compared with the uninstrumented Ruby relay (no run on this site measured it on ruby 3.3.13).

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.

4 cells affected

newrelic-traceparent-flags-own-sampling

New Relic Ruby: bunny publish injects only the legacy newrelic header, not W3C headers

open newrelic_rpm's bunny publish instrumentation emits the vendor newrelic header only; traceparent and tracestate are absent on every *->rabbitmq leg.

newrelic_rpm 10.7.1 is 12/16 on W3C headers but 16/16 on the vendor header: everything works, but bunny publish injects only the legacy newrelic header. On all four *->rabbitmq boundaries traceparent/tracestate are absent, so a W3C-only consumer downstream (or another vendor's agent) sees nothing. Consume (rabbitmq->*) accepts and continues correctly.

We found no upstream issue for this asymmetry. Workaround: insert the W3C headers into the message headers yourself with the agent's distributed-tracing API before publishing.

8 cells affected

newrelic-ruby-bunny-publish-vendor-header-only

Versions measured

Tracer
newrelic_rpm 9.10.0 9.10.0 on rubygems github
Runtime
ruby 3.3.13
Setup tier
init-only A boot-file initializer loads and configures the tool before application code runs (Ruby's require+configure pattern, Elastic Python's middleware). Request-path code is untouched.
Attach
require 'newrelic_rpm'
Relay source
relays/ruby/gemfiles/newrelic
Ran at
10 Nov 2026, 10:22 UTC
Harness
374f21d · measured in backtest-newrelic-ruby-9.10.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
9.10.0.json → variants[id = "newrelic-ruby"]

Libraries

grpcgrpc 1.83.1
http-clientnet/http (stdlib)
http-serversinatra 4.2.1 (puma 8.0.2)
kafkardkafka 0.29.1
rabbitmqbunny 3.3.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-0bf19884,team=alpha
ot-baggage-routing-key rk-0bf19884
traceparent 00-5e4fa0424656a0b58f573a7a128a9985-a5ea72bb9d6d2768-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-http--8c105c8c

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 48
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIxZmU2NGFmMTQ4MTg2OTA2IiwidHIiOiI1ZTRmYTA0MjQ2NTZhMGI1OGY1NzNhN2ExMjhhOTk4NSIsInNhIjpmYWxzZSwicHIiOjAuMDQ4Mjg5LCJ0aSI6MTc5NDMwNjEyNTgzNywiaWQiOiJkNWYyYTFhZGM3YjFmNzUyIn19
traceparent 00-5e4fa0424656a0b58f573a7a128a9985-d5f2a1adc7b1f752-00
tracestate 8478732@nr=0-0-8478732-572432810-d5f2a1adc7b1f752-1fe64af148186906-0-0.048289-1794306125837,cptest=v1
user-agent Ruby
test id
newrelic-ruby--http-http--8c105c8c
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-91fb590b,team=alpha
ot-baggage-routing-key rk-91fb590b
traceparent 00-253f6ed502dd4e2fd058597547ac9c0f-16ae660c6d9054c2-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-grpc--e8d72ac5

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJiZGZjNDA0NzA0YTIxYTUwIiwidHIiOiIyNTNmNmVkNTAyZGQ0ZTJmZDA1ODU5NzU0N2FjOWMwZiIsInNhIjpmYWxzZSwicHIiOjAuNjA0MTc2LCJ0aSI6MTc5NDMwNjEyNTg0MiwiaWQiOiI5OGVmZTY0YzViMTllZDdlIn19
traceparent 00-253f6ed502dd4e2fd058597547ac9c0f-98efe64c5b19ed7e-00
tracestate 8478732@nr=0-0-8478732-572432810-98efe64c5b19ed7e-bdfc404704a21a50-0-0.604176-1794306125842,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--http-grpc--e8d72ac5
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-0abb6f9c,team=alpha
ot-baggage-routing-key rk-0abb6f9c
traceparent 00-d4ee36c8c4e7daaaa4a875d02a511795-f113bd5f21823de2-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-kafka--d4a620f8

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--http-kafka--d4a620f8
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-51f10b2f,team=alpha
ot-baggage-routing-key rk-51f10b2f
traceparent 00-da39479ae1024b535621bb4b292e5ff2-bc1929694e1c9ab8-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-rabbitmq--5db49935

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIzNWEzMTE5NDUyYjczZTJlIiwidHIiOiJkYTM5NDc5YWUxMDI0YjUzNTYyMWJiNGIyOTJlNWZmMiIsInNhIjpmYWxzZSwicHIiOjAuNTg1NzgzLCJ0aSI6MTc5NDMwNjEyNTg2MSwiaWQiOiJkOTU4ZDdiODgyZDE5ZTY5In19
test id
newrelic-ruby--http-rabbitmq--5db49935
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-08cbea21,team=alpha
ot-baggage-routing-key rk-08cbea21
traceparent 00-7769d6b2c6b89942f9371eba6e27e174-c0bcf61b1cef4837-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-http--1669bb8d

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 48
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIyNWExOWNjMWQwMzllZmMzIiwidHIiOiI3NzY5ZDZiMmM2Yjg5OTQyZjkzNzFlYmE2ZTI3ZTE3NCIsInNhIjpmYWxzZSwicHIiOjAuMTgwMzc0LCJ0aSI6MTc5NDMwNjEyNTkwMSwiaWQiOiJiNDIzYjNlMWVjMDdlNDU3In19
traceparent 00-7769d6b2c6b89942f9371eba6e27e174-b423b3e1ec07e457-00
tracestate 8478732@nr=0-0-8478732-572432810-b423b3e1ec07e457-25a19cc1d039efc3-0-0.180374-1794306125901,cptest=v1
user-agent Ruby
test id
newrelic-ruby--grpc-http--1669bb8d
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-e3cd6cdb,team=alpha
ot-baggage-routing-key rk-e3cd6cdb
traceparent 00-80ec451a91663584ffa83a584aea9017-d0cd3a5e0b7ea656-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-grpc--a92b801b

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI0ODBkMjgzNTkwYTRmZmE1IiwidHIiOiI4MGVjNDUxYTkxNjYzNTg0ZmZhODNhNTg0YWVhOTAxNyIsInNhIjpmYWxzZSwicHIiOjAuNzIzODM2LCJ0aSI6MTc5NDMwNjEyNTkxMiwiaWQiOiIyZWJhYjU2ZDU3MDdkZDA3In19
traceparent 00-80ec451a91663584ffa83a584aea9017-2ebab56d5707dd07-00
tracestate 8478732@nr=0-0-8478732-572432810-2ebab56d5707dd07-480d283590a4ffa5-0-0.723836-1794306125912,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--grpc-grpc--a92b801b
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-bdda28da,team=alpha
ot-baggage-routing-key rk-bdda28da
traceparent 00-3ec1c6bc444e4c7ebf8672cc0e6cb038-b9b85085d222e335-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-kafka--01e6e09b

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--grpc-kafka--01e6e09b
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-a88bbe57,team=alpha
ot-baggage-routing-key rk-a88bbe57
traceparent 00-4f3a634f3d4c96b8fc2469c5200b8e35-221f741cc49f772d-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-rabbitmq--9a7a8863

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI0YzJiNTQ5NGFkOGUzZTFlIiwidHIiOiI0ZjNhNjM0ZjNkNGM5NmI4ZmMyNDY5YzUyMDBiOGUzNSIsInNhIjpmYWxzZSwicHIiOjAuOTU3OTQsInRpIjoxNzk0MzA2MTI1OTc0LCJpZCI6ImE4NjI0YzQ4NmNkMDE2YjAifX0=
test id
newrelic-ruby--grpc-rabbitmq--9a7a8863
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-6278ca6e,team=alpha
ot-baggage-routing-key rk-6278ca6e
traceparent 00-9ca90724cb1f658317ec989b8bc13cc8-600da822f54a260b-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-http--d403a93f

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 49
content-type application/json
user-agent Ruby
test id
newrelic-ruby--kafka-http--d403a93f
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-fd469c08,team=alpha
ot-baggage-routing-key rk-fd469c08
traceparent 00-94d98c1dd8227d8d10189ffacbc5a018-4f3876b55e2c9f40-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-grpc--d2859cd0

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--kafka-grpc--d2859cd0
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-b6175c80,team=alpha
ot-baggage-routing-key rk-b6175c80
traceparent 00-89049d1c947be6510aef52a15b5f98c1-de01c94e99bfa7be-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-kafka--fae0cf11

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--kafka-kafka--fae0cf11
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-401f1d91,team=alpha
ot-baggage-routing-key rk-401f1d91
traceparent 00-8731c7f9cf67ce2aa35f48178d0711df-3708c3866cf3b6b1-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-rabbitmq--0252da3f

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

No headers observed.

test id
newrelic-ruby--kafka-rabbitmq--0252da3f
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-40770411,team=alpha
ot-baggage-routing-key rk-40770411
traceparent 00-c8621984878343819d1cb78d853a8b06-2649b0e33402a4d1-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-http--aa839f54

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 52
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJlNTQ2MDQzOTU4YTk4MTNiIiwidHIiOiIzN2Q3OGFhYmIzZTU5ODk2NTE5ZjY2ZDE5MzAzZmM2OSIsInNhIjpmYWxzZSwicHIiOjAuNTU2NzkxLCJ0aSI6MTc5NDMwNjEyODUxOSwiaWQiOiJiN2RlNzUxNTE0YzA2MThjIn19
traceparent 00-37d78aabb3e59896519f66d19303fc69-b7de751514c0618c-00
tracestate 8478732@nr=0-0-8478732-572432810-b7de751514c0618c-e546043958a9813b-0-0.556791-1794306128519
user-agent Ruby
test id
newrelic-ruby--rabbitmq-http--aa839f54
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_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-72b18130,team=alpha
ot-baggage-routing-key rk-72b18130
traceparent 00-b41067ed8c50eaf57866ca3b907caa1d-97c3799290c4d41f-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-grpc--d2eadd45

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIwNjIxOGI3ZWQxMDMzOGNhIiwidHIiOiI2NTU3YjZkZTM3ZDU5NzE1YTZiOWVlNzdiZmVhOTZlZCIsInNhIjpmYWxzZSwicHIiOjAuNjI4MDk0LCJ0aSI6MTc5NDMwNjEyOTAxOCwiaWQiOiIzYjA0OWUyNzg3NWRlZWUyIn19
traceparent 00-6557b6de37d59715a6b9ee77bfea96ed-3b049e27875deee2-00
tracestate 8478732@nr=0-0-8478732-572432810-3b049e27875deee2-06218b7ed10338ca-0-0.628094-1794306129018
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--rabbitmq-grpc--d2eadd45
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_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-9ff547e8,team=alpha
ot-baggage-routing-key rk-9ff547e8
traceparent 00-b2c47636bc6c32d1cc4e7a1254fe7f17-ea5f84595300f95a-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-kafka--2db9e96e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--rabbitmq-kafka--2db9e96e
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-47b2dce5,team=alpha
ot-baggage-routing-key rk-47b2dce5
traceparent 00-a60f4a6fcf2dc174997047a1bb167c25-5a8396fd4cd92e2b-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-rabbitmq--31c98690

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJlYmNjNTlmZjVjMzU5N2RhIiwidHIiOiJlMWM1M2U2ZTk1NTY0ODFmMTQzMTYwNTlmMmUyNTdiYSIsInNhIjpmYWxzZSwicHIiOjAuNDcyODEzLCJ0aSI6MTc5NDMwNjEzMDAyMiwiaWQiOiI4ODkyNWY0NTE4ZmYwODE2In19
test id
newrelic-ruby--rabbitmq-rabbitmq--31c98690
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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