elastic-ruby

Ruby init-only elastic-apm (gem)3.7.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.7.0 3.7.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:10 UTC
Harness
374f21d · measured in backtest-elastic-ruby-3.7.0
Raw JSON
3.7.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-f03404e3,team=alpha
ot-baggage-routing-key rk-f03404e3
traceparent 00-f5f4976dacc2ec98867c037e939e7e3b-7e93680401d9ff7b-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--4f5f746c

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-f5f4976dacc2ec98867c037e939e7e3b-dd7769da067182b8-01
traceparent 00-f5f4976dacc2ec98867c037e939e7e3b-dd7769da067182b8-01
tracestate cptest=v1
user-agent Ruby
test id
elastic-ruby--http-http--4f5f746c
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-5d1e55a0,team=alpha
ot-baggage-routing-key rk-5d1e55a0
traceparent 00-a11a849d9c60ed684effb8ca026f4a22-069e8b627c97ecd5-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--2ec1ac12

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--2ec1ac12
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-179b5408,team=alpha
ot-baggage-routing-key rk-179b5408
traceparent 00-a7b309dd15c2b66c4c7ab15c7418be3d-409a8b7fd2724841-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--8ab1eff2

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--8ab1eff2
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-6256aa4b,team=alpha
ot-baggage-routing-key rk-6256aa4b
traceparent 00-b46ac570e9db4cb27e94660842467993-58837553cb1f4951-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--a1ff9c94

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--a1ff9c94
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-4865de00,team=alpha
ot-baggage-routing-key rk-4865de00
traceparent 00-f1377ccc79371536d78e7f481b34dcbc-b1851faac6393cf8-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--83a7b08a

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--83a7b08a
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-73682b5c,team=alpha
ot-baggage-routing-key rk-73682b5c
traceparent 00-d46015fef0d0f6ff2be1c5a2a856eaf6-c90cfad08e1cadbb-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--443aa2d9

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--443aa2d9
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-06c048a0,team=alpha
ot-baggage-routing-key rk-06c048a0
traceparent 00-0c257889fb50396d14b547086c18c5c2-875eb8f0b9bba247-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--8faaa6dd

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--8faaa6dd
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-36f4217f,team=alpha
ot-baggage-routing-key rk-36f4217f
traceparent 00-0324e0c88ad0f7a86b63e3385fdd0bf6-598d2c5078c51d87-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--a738e9aa

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--a738e9aa
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-d5dcc146,team=alpha
ot-baggage-routing-key rk-d5dcc146
traceparent 00-8e685611931afcae0bec5e4a3386fe6c-7601957c2ab57088-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--619abb9d

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--619abb9d
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-cdcddc1f,team=alpha
ot-baggage-routing-key rk-cdcddc1f
traceparent 00-bca7007e382180f75363db1c4e6accde-bae5d2f58e89f5ef-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--ee34d7dd

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--ee34d7dd
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-aa01bf97,team=alpha
ot-baggage-routing-key rk-aa01bf97
traceparent 00-ac4e6041fd44c48aca4775db533b97bf-a608dfd4654f1971-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--27019b58

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--27019b58
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-7553fd07,team=alpha
ot-baggage-routing-key rk-7553fd07
traceparent 00-8c5168d7d9753691ca1d0baeb9ed433e-a7b7d466082c4992-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--a40d4fbc

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--a40d4fbc
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-96001980,team=alpha
ot-baggage-routing-key rk-96001980
traceparent 00-aa4e28e72267712ebfdf3d69fdccf5d4-e80a1f4e95d3d6c9-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--d671777e

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--d671777e
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-883fd2bd,team=alpha
ot-baggage-routing-key rk-883fd2bd
traceparent 00-e22b18170ecd066f35ddbbf178e4749a-3bbf2e8d2b85fd5d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--830d10bf

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--830d10bf
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-72c8bb68,team=alpha
ot-baggage-routing-key rk-72c8bb68
traceparent 00-f7d260297295cdbff90189e45dff2a5f-aa03517978064ae1-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--4f468e29

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--4f468e29
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-861a933f,team=alpha
ot-baggage-routing-key rk-861a933f
traceparent 00-e3bb994ec345636773e0d2fa83764c54-83a938fb8edb9762-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--fd4c1ab4

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

No headers observed.

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

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