newrelic-ruby

Ruby init-only newrelic_rpm9.12.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.12.0 9.12.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:17 UTC
Harness
374f21d · measured in backtest-newrelic-ruby-9.12.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
9.12.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-5cb48ddf,team=alpha
ot-baggage-routing-key rk-5cb48ddf
traceparent 00-e2f2462091431b45865b8f4d631b65ed-24a08d8f28759db4-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-http--e0bf65b8

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI3ZGI0NjMyYWZlOWQwYjI2IiwidHIiOiJlMmYyNDYyMDkxNDMxYjQ1ODY1YjhmNGQ2MzFiNjVlZCIsInNhIjpmYWxzZSwicHIiOjAuMjk5MDQxLCJ0aSI6MTc5NDMwNTg1OTQ0NCwiaWQiOiJkNDQzZjMwMjExNGFkZGI4In19
traceparent 00-e2f2462091431b45865b8f4d631b65ed-d443f302114addb8-00
tracestate 8478732@nr=0-0-8478732-572432810-d443f302114addb8-7db4632afe9d0b26-0-0.299041-1794305859444,cptest=v1
user-agent Ruby
test id
newrelic-ruby--http-http--e0bf65b8
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-a7026d03,team=alpha
ot-baggage-routing-key rk-a7026d03
traceparent 00-bb044616a4b71345e25405d0598a2c6b-763f5cb2815918d0-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-grpc--5674b053

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI1MGQ3ZmY5NTEyNWYwZmI5IiwidHIiOiJiYjA0NDYxNmE0YjcxMzQ1ZTI1NDA1ZDA1OThhMmM2YiIsInNhIjpmYWxzZSwicHIiOjAuOTgyMTk4LCJ0aSI6MTc5NDMwNTg1OTQ1MSwiaWQiOiIzM2U2MjJlMDBkMjA4ZTg0In19
traceparent 00-bb044616a4b71345e25405d0598a2c6b-33e622e00d208e84-00
tracestate 8478732@nr=0-0-8478732-572432810-33e622e00d208e84-50d7ff95125f0fb9-0-0.982198-1794305859451,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--http-grpc--5674b053
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-1e812ff6,team=alpha
ot-baggage-routing-key rk-1e812ff6
traceparent 00-a94c4304f0cc7809adfbd28cbca57a0e-acc3be6f98f93e9e-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-kafka--46718abe

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--http-kafka--46718abe
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-a78bf67c,team=alpha
ot-baggage-routing-key rk-a78bf67c
traceparent 00-69812d79be8bfc2f63aeb37885f11e34-01718c209b8dbdc3-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-rabbitmq--8d3f5452

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI2NzNkNGI2YzIyYmMzNTg5IiwidHIiOiI2OTgxMmQ3OWJlOGJmYzJmNjNhZWIzNzg4NWYxMWUzNCIsInNhIjpmYWxzZSwicHIiOjAuOTM2NzYxLCJ0aSI6MTc5NDMwNTg1OTQ3MSwiaWQiOiJiOWE4OGZjMGI1NTcyYjcwIn19
test id
newrelic-ruby--http-rabbitmq--8d3f5452
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-fe34c15d,team=alpha
ot-baggage-routing-key rk-fe34c15d
traceparent 00-e3a078e39fd08e2ee45bb0d1678f1229-88a6646fbccf63cf-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-http--6b63d214

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJmZTQ3ZDBjZjRlM2U3NTViIiwidHIiOiJlM2EwNzhlMzlmZDA4ZTJlZTQ1YmIwZDE2NzhmMTIyOSIsInNhIjpmYWxzZSwicHIiOjAuNTIxMTQ0LCJ0aSI6MTc5NDMwNTg1OTQ5NSwiaWQiOiJlM2Q0OTc2MDEwYmQ5YzkxIn19
traceparent 00-e3a078e39fd08e2ee45bb0d1678f1229-e3d4976010bd9c91-00
tracestate 8478732@nr=0-0-8478732-572432810-e3d4976010bd9c91-fe47d0cf4e3e755b-0-0.521144-1794305859495,cptest=v1
user-agent Ruby
test id
newrelic-ruby--grpc-http--6b63d214
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-6e18effe,team=alpha
ot-baggage-routing-key rk-6e18effe
traceparent 00-deeca4cfcd9a9f11d674796a86f94a40-5e938e61e76eac50-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-grpc--3c9a29fc

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIxMzg2M2U1OTAwMTQ2NmRmIiwidHIiOiJkZWVjYTRjZmNkOWE5ZjExZDY3NDc5NmE4NmY5NGE0MCIsInNhIjpmYWxzZSwicHIiOjAuMDkzNjE3LCJ0aSI6MTc5NDMwNTg1OTUyMSwiaWQiOiJlMjEyM2M1N2UxZGY2ZDI1In19
traceparent 00-deeca4cfcd9a9f11d674796a86f94a40-e2123c57e1df6d25-00
tracestate 8478732@nr=0-0-8478732-572432810-e2123c57e1df6d25-13863e59001466df-0-0.093617-1794305859521,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--grpc-grpc--3c9a29fc
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-12f5876e,team=alpha
ot-baggage-routing-key rk-12f5876e
traceparent 00-6fd1675c663f72b861365d5c7da9667b-0b5869d939c0e9e9-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-kafka--375ec7b4

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--grpc-kafka--375ec7b4
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-7636b147,team=alpha
ot-baggage-routing-key rk-7636b147
traceparent 00-2da3975598c4fa06e42e05b608991ac8-5587daf569c41031-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-rabbitmq--66d01681

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIxOWVkNjc1Mjg1YzQxZjc3IiwidHIiOiIyZGEzOTc1NTk4YzRmYTA2ZTQyZTA1YjYwODk5MWFjOCIsInNhIjpmYWxzZSwicHIiOjAuMDAwNTU3LCJ0aSI6MTc5NDMwNTg1OTYwMSwiaWQiOiJjNTQyZWE4ODk4ZmJiODUyIn19
test id
newrelic-ruby--grpc-rabbitmq--66d01681
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-aaf33641,team=alpha
ot-baggage-routing-key rk-aaf33641
traceparent 00-5722874be66896dc79d714a678cbce20-b991f915047367a7-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-http--9b65de50

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--9b65de50
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-b1a2a711,team=alpha
ot-baggage-routing-key rk-b1a2a711
traceparent 00-beeaf8bb4170221a99f1e2971dd3ea6d-34fb223d39ff9b18-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-grpc--0ccfe7e5

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--0ccfe7e5
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-f66c8014,team=alpha
ot-baggage-routing-key rk-f66c8014
traceparent 00-8b62a2ed99d14d34769c540bc452f6eb-83c6983297670960-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-kafka--e5056edf

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--kafka-kafka--e5056edf
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-4a251449,team=alpha
ot-baggage-routing-key rk-4a251449
traceparent 00-d20bc74a5eca96d164f53a252b1a20d1-05e40290b7084e83-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-rabbitmq--69874aca

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

No headers observed.

test id
newrelic-ruby--kafka-rabbitmq--69874aca
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-bf5ff4c1,team=alpha
ot-baggage-routing-key rk-bf5ff4c1
traceparent 00-6f006ab7e0a96ef3de949f68e91e7207-8c24a34e81c47e3d-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-http--831d0f96

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIzNjdjZTc4ODAyNDI0ZGRmIiwidHIiOiI5ZTQ0NjRlM2Q5MDZkMTBjYjE4NTIwYzUxMDM5ZTY4YSIsInNhIjpmYWxzZSwicHIiOjAuNzY1ODY3LCJ0aSI6MTc5NDMwNTg2MjE0OSwiaWQiOiI3YjI1NTAzNzg2NDU3ZTgzIn19
traceparent 00-9e4464e3d906d10cb18520c51039e68a-7b25503786457e83-00
tracestate 8478732@nr=0-0-8478732-572432810-7b25503786457e83-367ce78802424ddf-0-0.765867-1794305862149
user-agent Ruby
test id
newrelic-ruby--rabbitmq-http--831d0f96
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-c5771398,team=alpha
ot-baggage-routing-key rk-c5771398
traceparent 00-debc8318e04643887275a93b73d3e306-b34e8faf424d0533-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-grpc--7bc25277

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJmODc5ODQyM2QxNWZmMmRlIiwidHIiOiIyNzc5ZTFjMzhkZTdlZWIxM2NkYWM5NWM5OTI4ZGQwMSIsInNhIjpmYWxzZSwicHIiOjAuOTg1MDM4LCJ0aSI6MTc5NDMwNTg2MjY0OCwiaWQiOiJmOTUwYzg3MTI4NjNhYzZkIn19
traceparent 00-2779e1c38de7eeb13cdac95c9928dd01-f950c8712863ac6d-00
tracestate 8478732@nr=0-0-8478732-572432810-f950c8712863ac6d-f8798423d15ff2de-0-0.985038-1794305862648
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--rabbitmq-grpc--7bc25277
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-e5153e39,team=alpha
ot-baggage-routing-key rk-e5153e39
traceparent 00-94aa77f972fb295cc6b1a18df6b4474d-656e7b609c51845e-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-kafka--77c4d798

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--rabbitmq-kafka--77c4d798
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-feb4b6b2,team=alpha
ot-baggage-routing-key rk-feb4b6b2
traceparent 00-4335c97ba591e14dac43b0b07f9b71ed-a02b4806f55102c6-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-rabbitmq--29042a8d

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI3MGM3MTkxZGRjMGJlNTU4IiwidHIiOiI5MjVhNzExZDcyMGZkODU2Y2I4YTYyZTVhNWVkZjQzYSIsInNhIjpmYWxzZSwicHIiOjAuMjgyNzYyLCJ0aSI6MTc5NDMwNTg2MzY1MiwiaWQiOiJiMjQxZWQyNjg4ZDA5ZGUwIn19
test id
newrelic-ruby--rabbitmq-rabbitmq--29042a8d
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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