elastic-ruby

Ruby init-only elastic-apm (gem)4.7.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 4.7.1 4.7.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
1 Nov 2026, 05:47 UTC
Harness
e793604 · measured in backtest-elastic-ruby-4.7.1
Raw JSON
4.7.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-a54bee39,team=alpha
ot-baggage-routing-key rk-a54bee39
traceparent 00-3e1ae2d6b96af3add8ee1c54f19982fc-ee707283d94e3612-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--42a0ba85

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-3e1ae2d6b96af3add8ee1c54f19982fc-6df283727238717a-01
traceparent 00-3e1ae2d6b96af3add8ee1c54f19982fc-6df283727238717a-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--42a0ba85
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-0cf0aef1,team=alpha
ot-baggage-routing-key rk-0cf0aef1
traceparent 00-3e754abceb1e810df8e40e3888c052fa-20b43e0b413a704a-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--88152e04

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--88152e04
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-429ef443,team=alpha
ot-baggage-routing-key rk-429ef443
traceparent 00-5b58b6d4269bbab00ee32afd886ef61b-0254d688895c04f5-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--6ea408b8

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--6ea408b8
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-694d5322,team=alpha
ot-baggage-routing-key rk-694d5322
traceparent 00-677688daa215e7b056bdead9c02f1bd7-456bdef052d850e3-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--d8ea9de8

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--d8ea9de8
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-1b176046,team=alpha
ot-baggage-routing-key rk-1b176046
traceparent 00-b5dc00afc9ac638eeac83d85f14e1c5c-dfb118eccadef557-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--0d96d709

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--0d96d709
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-32f3b2a6,team=alpha
ot-baggage-routing-key rk-32f3b2a6
traceparent 00-01ac6b93717a6b00a7e597066c472cc2-1c68136adbb22865-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--63ef837b

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--63ef837b
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-c05543ee,team=alpha
ot-baggage-routing-key rk-c05543ee
traceparent 00-b0407ee108e43b2290ac9a8d70b8dec3-25d1e337bf900f57-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--33ab10bf

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--33ab10bf
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-537861fb,team=alpha
ot-baggage-routing-key rk-537861fb
traceparent 00-24de531b5486b7c407545d8625192116-f5bea87b2ac5d42d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--14597324

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--14597324
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-799fa451,team=alpha
ot-baggage-routing-key rk-799fa451
traceparent 00-5e686395a8f51bfe31cc82022dfdeb1e-9ecab6d78a59cdb7-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--26be0549

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--26be0549
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-18208598,team=alpha
ot-baggage-routing-key rk-18208598
traceparent 00-04c1eb588f9f246101216207aa9e306d-7a68f8c81481c2b6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--db44d798

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--db44d798
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-7f975f91,team=alpha
ot-baggage-routing-key rk-7f975f91
traceparent 00-737a83cf58c3b2f57f182a177cfc08c5-7e3b40727d9c7020-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--119d5ee9

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--119d5ee9
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-4600f61f,team=alpha
ot-baggage-routing-key rk-4600f61f
traceparent 00-e45302be443d1a46ba115f6d729b23f0-8afb3bb7fd67c1d7-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--5a8b62f2

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--5a8b62f2
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-fcc4a1c9,team=alpha
ot-baggage-routing-key rk-fcc4a1c9
traceparent 00-88df285c304ed1f371d7484a55e3c7be-5f9bbbfceac47216-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--e96c955f

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--e96c955f
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-0deee312,team=alpha
ot-baggage-routing-key rk-0deee312
traceparent 00-a9891f1711071f7394d66c0557615cd9-e53931ae98f8c62f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--55791a5b

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--55791a5b
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-e392bae5,team=alpha
ot-baggage-routing-key rk-e392bae5
traceparent 00-9a2ee4960244233ce8948b6772706a98-35b4835bd96d5786-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--158d2190

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--158d2190
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-1a274d97,team=alpha
ot-baggage-routing-key rk-1a274d97
traceparent 00-12f82376c5f223ccc4ff558cd27159b1-fcfc3cf4857a1291-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--8f50fc24

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

No headers observed.

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

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