elastic-ruby

Ruby init-only elastic-apm (gem)3.8.0

attach require 'elastic_apm'; ElasticAPM.start

2/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

Elastic Node, Python, Ruby and PHP agents do not propagate W3C baggage on any boundary

open Only Elastic's Java agent (and .NET over HTTP/gRPC) implements the baggage propagation the agent spec mandates; these agents drop it on every boundary.

Elastic's agent spec mandates baggage support, but only the Java agent delivers it end-to-end. elastic-apm-node 4.18.0 has no W3C baggage implementation; elastic-apm (Python) 6.26.2, elastic-apm (Ruby) 4.9.0 and elastic_apm (PHP) 1.17.0 measure baggage absent on every boundary, including http->http where traceparent/tracestate continue. The seeded member is neither extracted nor re-emitted.

Outside Java, Elastic APM cannot currently carry application baggage across protocol boundaries; a user must forward the baggage header as an application header themselves. Elastic's Node distributed-tracing docs likewise describe manual traceparent passing only (no tracestate or baggage). We found no upstream issue requesting W3C baggage in these agents.

16 cells affected

elastic-agents-no-w3c-baggage

Elastic Ruby: gRPC support is experimental and manual, with no zero-code client or server path

open The Ruby agent instruments gRPC only via a hand-added ClientInterceptor at stub creation; the init-only setup adds none, and there is no server-side path.

elastic-apm (Ruby) 4.9.0 passes http->http only. gRPC support exists but is experimental and manual: "To instrument a client, add the ElasticAPM::GRPC::ClientInterceptor as an interceptor at Stub creation". The harness's init-only setup (require 'elastic_apm'; ElasticAPM.start) adds no interceptor, so *->grpc carries nothing, and with no server-side instrumentation grpc->* runs with no transaction and injects nothing on the outbound leg.

What a user can do: wire the client interceptor into every stub. Nothing documented covers the server side.

14 cells affected

elastic-ruby-grpc-manual-only

Elastic Ruby: no bunny or client-level Kafka instrumentation, and the Racecar spy never reads headers

open The Ruby agent covers Kafka only via Racecar (whose spy never reads a trace_parent) and RabbitMQ only via Sneakers; rdkafka and bunny are uninstrumented.

Nothing is injected on *->kafka or *->rabbitmq and nothing is extracted on kafka->* or rabbitmq->* on elastic-apm (Ruby) 4.9.0. The supported technologies page lists RabbitMQ only as "Sneakers (Experimental)" and no Kafka client library at all; Kafka is covered only via the Racecar framework.

Even under Racecar, consume-side continuation is impossible: the racecar spy (lib/elastic_apm/spies/racecar.rb, added by PR #1284) calls ElasticAPM.start_transaction(kind, TYPE) with no trace_parent, so it never reads message headers.

No upstream issues request bunny or client-level Kafka (rdkafka/ruby-kafka) instrumentation. Workaround: inject traceparent/tracestate into message headers manually and start the consumer transaction with the received trace_parent.

24 cells affected

elastic-ruby-no-client-kafka-or-bunny

Versions measured

Tracer
elastic-apm 3.8.0 3.8.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 'elastic_apm'; ElasticAPM.start
Relay source
relays/ruby/gemfiles/elastic
Ran at
10 Nov 2026, 10:08 UTC
Harness
374f21d · measured in backtest-elastic-ruby-3.8.0
Raw JSON
3.8.0.json → variants[id = "elastic-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

Library defaults: no propagation-related environment set.

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-82b0a1fd,team=alpha
ot-baggage-routing-key rk-82b0a1fd
traceparent 00-c22d096aae5db0c498913474e4425849-7fade90b9bee7699-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--ac0e4d2a

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 47
content-type application/json
elastic-apm-traceparent 00-c22d096aae5db0c498913474e4425849-4845fc9ad889a736-01
traceparent 00-c22d096aae5db0c498913474e4425849-4845fc9ad889a736-01
tracestate cptest=v1
user-agent Ruby
test id
elastic-ruby--http-http--ac0e4d2a
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-9e784d28,team=alpha
ot-baggage-routing-key rk-9e784d28
traceparent 00-b43be8340f6c58a2eaaa55ce7fa1bfbd-60d5859955937466-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--2c43fdc4

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
elastic-ruby--http-grpc--2c43fdc4
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-3450ebf2,team=alpha
ot-baggage-routing-key rk-3450ebf2
traceparent 00-15148b0609318bb3c97cfb072e44052c-5179269fc044eda5-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--e3e29726

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--e3e29726
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-76f39e3a,team=alpha
ot-baggage-routing-key rk-76f39e3a
traceparent 00-ae47cb4384ca1e806548fc11a83ee5fb-1dd3f1e0c0e2fea9-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--50db9421

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--50db9421
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-991fda2a,team=alpha
ot-baggage-routing-key rk-991fda2a
traceparent 00-82ac12f7adc579408977d95b461c24c1-b46f7a7e759f1632-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--01a6ed6a

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 47
content-type application/json
user-agent Ruby
test id
elastic-ruby--grpc-http--01a6ed6a
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound gRPC metadata

baggage routing-key=rk-88e296f8,team=alpha
ot-baggage-routing-key rk-88e296f8
traceparent 00-9b5e0f74397d72cc9295f85d22303448-d8318e0af6137315-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--44c02888

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
elastic-ruby--grpc-grpc--44c02888
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound gRPC metadata

baggage routing-key=rk-d1aa6586,team=alpha
ot-baggage-routing-key rk-d1aa6586
traceparent 00-0a9b0cb5b89bfabda577630bbeea60f5-2c63ab0dd26e6ec8-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--c25bfa34

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--c25bfa34
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-fb8fcfa2,team=alpha
ot-baggage-routing-key rk-fb8fcfa2
traceparent 00-3ce4e1aeefa2f6c4ebda6104c0e93a8a-c05a21ffa0738a99-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--01a91b73

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--01a91b73
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-9d07f720,team=alpha
ot-baggage-routing-key rk-9d07f720
traceparent 00-aeb4847f52a4ddaf23a618632bf92dce-feda2d1b1fa12ce5-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--78e919ad

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
user-agent Ruby
test id
elastic-ruby--kafka-http--78e919ad
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-0f20e9b5,team=alpha
ot-baggage-routing-key rk-0f20e9b5
traceparent 00-73e341c95035c9c62a2e13587333427b-5dc661276d2cff30-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--42419015

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
elastic-ruby--kafka-grpc--42419015
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-1af271fc,team=alpha
ot-baggage-routing-key rk-1af271fc
traceparent 00-402be8fb2e8643f3f67e3f792bf7d790-6c6e6d1478ec615e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--c2cab7eb

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--c2cab7eb
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-930dadba,team=alpha
ot-baggage-routing-key rk-930dadba
traceparent 00-1e1263c0ef874ee729218c6b41687feb-d8f12d7d4f01ee9f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--65de9496

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--65de9496
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-5d4c814b,team=alpha
ot-baggage-routing-key rk-5d4c814b
traceparent 00-962fffb589b5f51846d56528b4deb8e6-09eac928f625429e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--ce3f6e22

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 51
content-type application/json
user-agent Ruby
test id
elastic-ruby--rabbitmq-http--ce3f6e22
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-4f0b935c,team=alpha
ot-baggage-routing-key rk-4f0b935c
traceparent 00-f16fffeb0e9b41224f3084414b2d7cd6-883d68edf1fb194c-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--4a665049

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
elastic-ruby--rabbitmq-grpc--4a665049
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-34992985,team=alpha
ot-baggage-routing-key rk-34992985
traceparent 00-69e8ac547b287c66295a6c8884bfb1d0-cd3d33e8066e7b3c-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--3d171247

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--3d171247
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-1a42173f,team=alpha
ot-baggage-routing-key rk-1a42173f
traceparent 00-f9c2d41b67125d9e3e7f3098c4e55231-424db45dd193edb0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--03d660c5

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

No headers observed.

test id
elastic-ruby--rabbitmq-rabbitmq--03d660c5
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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