elastic-ruby

Ruby init-only elastic-apm (gem)3.11.1

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.11.1 3.11.1 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, 08:31 UTC
Harness
9b99070 · measured in backtest-elastic-ruby-3.11.1
Raw JSON
3.11.1.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-31c558fd,team=alpha
ot-baggage-routing-key rk-31c558fd
traceparent 00-c74b32e684dd46aad688655acb1cf7cf-e69429d41602f57b-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--33f9b8ed

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-c74b32e684dd46aad688655acb1cf7cf-6c5eb70c24db5423-01
traceparent 00-c74b32e684dd46aad688655acb1cf7cf-6c5eb70c24db5423-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--33f9b8ed
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-258cc0ff,team=alpha
ot-baggage-routing-key rk-258cc0ff
traceparent 00-db24b3b1d365b2dcfaf8acb225fe2103-1e9f7be0c96d769f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--40f47456

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--40f47456
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-d9e00377,team=alpha
ot-baggage-routing-key rk-d9e00377
traceparent 00-4c1f4f789fb860b0bfb78b9d4301a292-f21b5c90a9cc718f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--ae6bb36e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--ae6bb36e
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-d1adfee4,team=alpha
ot-baggage-routing-key rk-d1adfee4
traceparent 00-6ab0c60aaf831a6c9d087151220636db-6711260fa369e871-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--d6335f18

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--d6335f18
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-0341ec02,team=alpha
ot-baggage-routing-key rk-0341ec02
traceparent 00-a6229b6da75d1586fa1f8daab1e201fb-da08a154aea310fc-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--2133d43d

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--2133d43d
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-1fae60a7,team=alpha
ot-baggage-routing-key rk-1fae60a7
traceparent 00-0f9c0eb39759a1edc2395717dd1e9448-5214fd666fef70a0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--d5e531ff

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--d5e531ff
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-2f735faa,team=alpha
ot-baggage-routing-key rk-2f735faa
traceparent 00-0b65295f2ff6eaa4293420c867fff37a-83295df698e09316-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--087f9949

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--087f9949
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-07dbd064,team=alpha
ot-baggage-routing-key rk-07dbd064
traceparent 00-5ce254bacf49c28bd084aaf07bbb9de8-f219253d72d0f82a-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--4fddb3be

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--4fddb3be
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-22ba37fa,team=alpha
ot-baggage-routing-key rk-22ba37fa
traceparent 00-ec0cab10190191fa320f6944ba5e6a68-8a8e03b7eca87067-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--eaa51e8e

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--eaa51e8e
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-bc552016,team=alpha
ot-baggage-routing-key rk-bc552016
traceparent 00-5c0b6e915b2aa396aa49be2d4e40a315-b4b8a4a903c13004-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--72d17552

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--72d17552
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-7c75a218,team=alpha
ot-baggage-routing-key rk-7c75a218
traceparent 00-e029aad6aece87b9677a66e4f9c9b083-b42248f69b2e60a1-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--798ebc7a

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--798ebc7a
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-666d1013,team=alpha
ot-baggage-routing-key rk-666d1013
traceparent 00-c6b70c60392d884548aaa504b2172393-d83200fb106056a0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--4ff2465d

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--4ff2465d
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-a8fb69c1,team=alpha
ot-baggage-routing-key rk-a8fb69c1
traceparent 00-be311a00a7b9b55e778b92f05dac0a35-24067c84715b90aa-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--37938cc7

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--37938cc7
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-96f15b7c,team=alpha
ot-baggage-routing-key rk-96f15b7c
traceparent 00-4b41d9efb9bee02b7964349c9a608ff7-0d62f95ec37edf6e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--7a643134

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--7a643134
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-5fbe32ae,team=alpha
ot-baggage-routing-key rk-5fbe32ae
traceparent 00-a3e3346c7e7eb63fc74a9f9eb545afa2-e0ea2691fdcb04f0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--8835608d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--8835608d
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-152f11db,team=alpha
ot-baggage-routing-key rk-152f11db
traceparent 00-99c7db59883364e4a5e1758016537456-387b764f129ab7c8-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--c74d2527

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

No headers observed.

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

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