elastic-ruby

Ruby init-only elastic-apm (gem)4.9.0

attach require 'elastic-apm'; HttpApp.use ElasticAPM::Middleware; ElasticAPM::Sinatra.start(HttpApp)

2/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

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.

216 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.

60 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 in this run

Tracer
elastic-apm 4.9.0 this version 4.9.0 on rubygems github
Runtime
ruby 3.3.14
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'; HttpApp.use ElasticAPM::Middleware; ElasticAPM::Sinatra.start(HttpApp)
Relay source
relays/ruby/gemfiles/elastic
Ran at
23 Nov 2026, 13:41 UTC
Harness
089dcbd · run run-2026-11-23.3
Raw JSON
run-2026-11-23.3.json → variants[id = "elastic-ruby"]

Libraries

grpcgrpc 1.85.0
http-clientnet/http (stdlib)
http-serversinatra 4.2.1 (puma 8.1.2)
kafkardkafka 0.31.0
rabbitmqbunny 3.6.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 native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-fc8ac514,team=alpha
ot-baggage-routing-key rk-fc8ac514
traceparent 00-0d202daecfb75ce2d7114ba0c0c42bb2-f5cf2c3d0135a373-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--90b08433

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-0d202daecfb75ce2d7114ba0c0c42bb2-de708327aa7ce14a-01
traceparent 00-0d202daecfb75ce2d7114ba0c0c42bb2-de708327aa7ce14a-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--90b08433
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-81f1d482,team=alpha
ot-baggage-routing-key rk-81f1d482
traceparent 00-c0ce665377b5ebac533414a85067b3c0-c5fe7cf8e5188c8e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--2416cae9

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--http-grpc--2416cae9
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-9db101a0,team=alpha
ot-baggage-routing-key rk-9db101a0
traceparent 00-92df4d945af1ff3ad2ca0c6f1df200bf-a42d701dc3bc3d5f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--5b77e503

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--5b77e503
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-3338aff8,team=alpha
ot-baggage-routing-key rk-3338aff8
traceparent 00-6ec40694c990a0e3189a5207f317e779-65795b9d3b012776-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--349ccb88

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--349ccb88
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-1653d4f7,team=alpha
ot-baggage-routing-key rk-1653d4f7
traceparent 00-7a0ce7c4e24fe2a77eb3005cb70e39b3-6a92d66973434bf0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--df91e0af

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--df91e0af
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-658b1b8f,team=alpha
ot-baggage-routing-key rk-658b1b8f
traceparent 00-2d443993aa7f23180cc4f88910bd0c8c-6863483b9fd08c84-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--1025c8e5

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--grpc-grpc--1025c8e5
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-e437144e,team=alpha
ot-baggage-routing-key rk-e437144e
traceparent 00-3a25530128946c9f9fb7b856efc1410a-30e01f2b6ed3c5d9-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--4297d25a

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--4297d25a
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-bb3fad96,team=alpha
ot-baggage-routing-key rk-bb3fad96
traceparent 00-79322c14fe20c6a4083e898cd76de1e8-08d7ce2d8a42f88d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--4d8a5125

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--4d8a5125
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-b1bcd7b4,team=alpha
ot-baggage-routing-key rk-b1bcd7b4
traceparent 00-f18298dcc7603e326d2daee53bbc3a44-d4bb24098f3d5b6c-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--6f424c07

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--6f424c07
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-84462c4a,team=alpha
ot-baggage-routing-key rk-84462c4a
traceparent 00-c341722baac6fdc79a4582cf1228adab-670f3b88a5a3ccd3-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--2bba6405

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--kafka-grpc--2bba6405
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-107fa890,team=alpha
ot-baggage-routing-key rk-107fa890
traceparent 00-084705539b507b0680c79e8b44980f2d-70a64a6f22bce215-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--c034209c

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--c034209c
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-6c5d0cce,team=alpha
ot-baggage-routing-key rk-6c5d0cce
traceparent 00-b4061a09d6aae3e1048a01ea9232459c-d03ce8e150e02477-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--193a973f

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--193a973f
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-20b47fa2,team=alpha
ot-baggage-routing-key rk-20b47fa2
traceparent 00-d6c07a69dff053b701527d84df6ad373-430a404a2e74c9b0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--10370689

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--10370689
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-fe4eb109,team=alpha
ot-baggage-routing-key rk-fe4eb109
traceparent 00-14414d543a053265382ede811f466fdd-011b8d99fe47f953-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--3cfd9103

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--rabbitmq-grpc--3cfd9103
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-1689ac81,team=alpha
ot-baggage-routing-key rk-1689ac81
traceparent 00-00274ae65c194e6106851b089c715881-533e310a1b84f3b2-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--7f77150c

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--7f77150c
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-dd9c6ff1,team=alpha
ot-baggage-routing-key rk-dd9c6ff1
traceparent 00-4f29584685d07b131ea6df909033ef80-904f2e060ea33ea7-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--f2cc40c5

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

No headers observed.

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

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