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
25 Nov 2026, 00:15 UTC
Harness
7920dd0 · run run-2026-11-25
Raw JSON
run-2026-11-25.json → variants[id = "elastic-ruby"]

Libraries

grpcgrpc 1.85.0
http-clientnet/http (stdlib)
http-serversinatra 4.2.2 (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-142c386d,team=alpha
ot-baggage-routing-key rk-142c386d
traceparent 00-b0385e3209c1f3a201857bce9db1d798-0cae3c45ddc0fffb-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--ca13d3f4

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-b0385e3209c1f3a201857bce9db1d798-871530d8a1aa9021-01
traceparent 00-b0385e3209c1f3a201857bce9db1d798-871530d8a1aa9021-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--ca13d3f4
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-c1a3308c,team=alpha
ot-baggage-routing-key rk-c1a3308c
traceparent 00-b6c8b1df9e31a602648b7491ae1bf61a-432335b455700ea6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--8713b088

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--8713b088
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-5979eb74,team=alpha
ot-baggage-routing-key rk-5979eb74
traceparent 00-ffd292c7f4e4544b560ad81c8a109e63-2771b40687f6a387-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--ec9483a3

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--ec9483a3
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-1cd77b21,team=alpha
ot-baggage-routing-key rk-1cd77b21
traceparent 00-5008d3b7958fe3d7a96a7ffc47b785af-b0544dc37c8d4a1d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--7ae0b931

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--7ae0b931
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-4ed80cea,team=alpha
ot-baggage-routing-key rk-4ed80cea
traceparent 00-70e425c6dfe3f02a9f86a022a6c65f3a-c59960def145ebc6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--b96c9db0

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--b96c9db0
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-60503598,team=alpha
ot-baggage-routing-key rk-60503598
traceparent 00-2a14904d07512796a552602e2e21b905-5f06ad1b5f09a136-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--fb53b55f

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--fb53b55f
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-200422a3,team=alpha
ot-baggage-routing-key rk-200422a3
traceparent 00-5d25638dc89fef1ff84a715757974190-a37110bef839290a-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--fb2b96d5

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--fb2b96d5
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-7d973946,team=alpha
ot-baggage-routing-key rk-7d973946
traceparent 00-d685d6d35c6ad49fbcb3ff5d25d1fc7c-3fcb4abb6a59bf90-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--c33f4a71

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--c33f4a71
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-ab09ab46,team=alpha
ot-baggage-routing-key rk-ab09ab46
traceparent 00-e413adc375de57810c7dd65f1fa5847b-2d189fee0dd334ac-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--98e651ff

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--98e651ff
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-665e2ed5,team=alpha
ot-baggage-routing-key rk-665e2ed5
traceparent 00-6063d4f2213367e51ad4f10c8cc2c713-8e0dbf2b502736fc-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--fbe4cb81

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--fbe4cb81
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-d1b6175d,team=alpha
ot-baggage-routing-key rk-d1b6175d
traceparent 00-b824ad2c4c9de01abf928ed942ce5550-1a6347412e093b53-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--daaf019e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--daaf019e
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-b4feef16,team=alpha
ot-baggage-routing-key rk-b4feef16
traceparent 00-9ac29520a46dd7f6f30d47d26715b90f-26f2aa635317265f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--2f42d45c

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--2f42d45c
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-48411904,team=alpha
ot-baggage-routing-key rk-48411904
traceparent 00-e7bc70e2c60b30c11aa6867a17e2fdfd-38e52d3495a939bf-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--e3442004

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--e3442004
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-9b7c7c3b,team=alpha
ot-baggage-routing-key rk-9b7c7c3b
traceparent 00-c33c47d83bca3a7e8087d9a9df5ce56d-dca61b3bfacc6907-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--fd395209

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--fd395209
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-9d4f1671,team=alpha
ot-baggage-routing-key rk-9d4f1671
traceparent 00-be21f3e036ea34948385257d9c1280fb-bc0ed0e4c72f9ae5-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--daefc4bd

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--daefc4bd
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-7d95ae52,team=alpha
ot-baggage-routing-key rk-7d95ae52
traceparent 00-8e8e6ac29149e0f2040c32a0e604c3c1-92822339b0aaa165-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--c7367cf1

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

No headers observed.

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

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