otel-ruby

Ruby init-only opentelemetry-sdk1.13.0

attach require 'opentelemetry/sdk'; OpenTelemetry::SDK.configure { use_all }

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

Explanations

OpenTelemetry, Elastic APM and New Relic never implemented the OpenTracing-era ot-baggage-* headers

by-design ot-baggage-* is a legacy OpenTracing convention; OpenTelemetry, Elastic APM and New Relic each define their propagation header set without it.

The seeded ot-baggage-routing-key header is ignored — neither extracted nor re-emitted — by every OpenTelemetry, Elastic and New Relic variant on every delivered boundary. None of these tools ever emitted the OpenTracing header format: OpenTelemetry standardised on W3C baggage; 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.

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.

356 cells affected

ot-baggage-not-implemented

OTel Ruby: bunny consumer drops the producer context and starts a new trace

open opentelemetry-instrumentation-bunny parents the process span on its own re-injected local headers and demotes the producer context to a span link.

Injection into RabbitMQ (*->rabbitmq) via opentelemetry-instrumentation-bunny 0.25.0 is correct, baggage included. On consume, with_process_span in patch_helpers.rb parents the process span on the instrumentation's own :tracer_receive_headers (a local receive span it injected itself) and adds the producer's real context only as a Link. Every rabbitmq->* leg starts a new trace and loses baggage and the foreign tracestate entry.

Exact-match issue #526 ("Instead of propagating any contexts (including baggage), the bunny instrumentation drops all contexts in the consumer and starts a new trace") has been open since June 2023 with no fix PR. Maintainers describe the behaviour as links-by-design per the OTel messaging spec (discussion #1098).

Workaround: extract from the delivery headers and attach the context in the consumer block before outbound calls. This is the same consume-side activation gap seen in OTel Python (confluent-kafka) and OTel .NET (Kafka).

12 cells affected

otel-ruby-bunny-consume-new-trace

OTel Ruby: the gRPC instrumentation is client-only, so gRPC-inbound requests start a new trace

open opentelemetry-instrumentation-grpc only instruments outbound calls; there is no server-side instrumentation for the plain grpc gem.

The contrib gRPC instrumentation (donated from hibachrach/opentelemetry-instrumentation-grpc via PR #1164, Sep 2024, answering a request open since 2020) is explicitly client-only — its README warns "Right now, the gem only instruments outbound requests to gRPC services". It is bundled in opentelemetry-instrumentation-all, so the accurate statement is "loaded but client-only", and even client injection requires manually wiring the interceptor into stubs. Server spans exist only for the Gruf framework.

With no server-side extraction, grpc->* legs run with no incoming context; outbound calls start a fresh trace and baggage/tracestate are lost.

Workaround: add a server interceptor that extracts from the call metadata and attaches the context. No upstream issue requests server-side grpc gem support — filing candidate.

12 cells affected

otel-ruby-grpc-server-not-instrumented

Versions in this run

Tracer
opentelemetry-sdk 1.13.0 this version 1.13.0 on rubygems github
Runtime
ruby 3.3.12
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 'opentelemetry/sdk'; OpenTelemetry::SDK.configure { use_all }
Relay source
relays/ruby/gemfiles/otel
Ran at
7 Sept 2026, 11:14 UTC
Harness
commit not recorded · run run-2026-09-07
Raw JSON
run-2026-09-07.json → variants[id = "otel-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

OTEL_PROPAGATORStracecontext,baggage
OTEL_TRACES_EXPORTERnone

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-1af0b31c,team=alpha
ot-baggage-routing-key rk-1af0b31c
traceparent 00-dcda97fb6f19248902775e50cb061bf9-3df5579e2584651d-01
tracestate cptest=v1
x-cp-canary otel-ruby--http-http--6161ad4d

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
baggage routing-key=rk-1af0b31c,team=alpha
content-length 44
content-type application/json
traceparent 00-dcda97fb6f19248902775e50cb061bf9-5dce72339964f380-01
tracestate cptest=v1
user-agent Ruby
test id
otel-ruby--http-http--6161ad4d
raw statuses
baggage=propagatedtracestate=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-69e8b667,team=alpha
ot-baggage-routing-key rk-69e8b667
traceparent 00-194361470026b2e7b75bd957addebfd5-e64ed793ed51b65f-01
tracestate cptest=v1
x-cp-canary otel-ruby--http-grpc--6986f589

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
baggage routing-key=rk-69e8b667,team=alpha
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-194361470026b2e7b75bd957addebfd5-415feb67b6180c71-01
tracestate cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
otel-ruby--http-grpc--6986f589
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-26928cf2,team=alpha
ot-baggage-routing-key rk-26928cf2
traceparent 00-89eb3158792c8619fa4e42cbc4280887-ea82f57c7ef91e2d-01
tracestate cptest=v1
x-cp-canary otel-ruby--http-kafka--9b59172e

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-26928cf2,team=alpha
traceparent 00-89eb3158792c8619fa4e42cbc4280887-ecea8bbf25ab1e0a-01
tracestate cptest=v1
test id
otel-ruby--http-kafka--9b59172e
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-f5be5d2f,team=alpha
ot-baggage-routing-key rk-f5be5d2f
traceparent 00-a119626c889b9bb3c95137d88209e110-d569d91af67d5b81-01
tracestate cptest=v1
x-cp-canary otel-ruby--http-rabbitmq--8343af0a

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

baggage routing-key=rk-f5be5d2f,team=alpha
traceparent 00-a119626c889b9bb3c95137d88209e110-0617799b5e53b561-01
tracestate cptest=v1
test id
otel-ruby--http-rabbitmq--8343af0a
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-89859595,team=alpha
ot-baggage-routing-key rk-89859595
traceparent 00-ed9d45a9772673a34f5c2b88f5daffdb-99b3f8207c64614e-01
tracestate cptest=v1
x-cp-canary otel-ruby--grpc-http--1fe95a26

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 44
content-type application/json
traceparent 00-028101718092dd3926faa3d5e2f93163-07801cbf8fce0006-01
user-agent Ruby
test id
otel-ruby--grpc-http--1fe95a26
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound gRPC metadata

baggage routing-key=rk-a16a5484,team=alpha
ot-baggage-routing-key rk-a16a5484
traceparent 00-19f0287526f057e4c535b34fae54ad2f-e95dcf5bc3944d55-01
tracestate cptest=v1
x-cp-canary otel-ruby--grpc-grpc--e3ad24b7

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-c974fb27ebc4da9a51aca99cdf5592b8-fb822675cceb5c70-01
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
otel-ruby--grpc-grpc--e3ad24b7
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound gRPC metadata

baggage routing-key=rk-1a5beef4,team=alpha
ot-baggage-routing-key rk-1a5beef4
traceparent 00-4bc69745d2f2e2d374677484d29d5e84-22df13fa6a85d60e-01
tracestate cptest=v1
x-cp-canary otel-ruby--grpc-kafka--bf80a3d2

Observed at the sink on the outbound Kafka record headers

traceparent 00-af1f927df95b4a09474392b1d957dd8c-d36e3ca2e3a72fe3-01
test id
otel-ruby--grpc-kafka--bf80a3d2
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound gRPC metadata

baggage routing-key=rk-b5de0351,team=alpha
ot-baggage-routing-key rk-b5de0351
traceparent 00-bd773ea29435c63886f3267777a0387f-91513a14b60059f7-01
tracestate cptest=v1
x-cp-canary otel-ruby--grpc-rabbitmq--0428ecdf

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

traceparent 00-fcc153b2e8fc29f8847e957ee2709a04-b3ff577e5babde8e-01
test id
otel-ruby--grpc-rabbitmq--0428ecdf
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-2bee1fc5,team=alpha
ot-baggage-routing-key rk-2bee1fc5
traceparent 00-d8cb0fc36d3f15782e475aad7d47cf32-c54008502e00736e-01
tracestate cptest=v1
x-cp-canary otel-ruby--kafka-http--78c48697

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
baggage routing-key=rk-2bee1fc5,team=alpha
content-length 45
content-type application/json
traceparent 00-d8cb0fc36d3f15782e475aad7d47cf32-da2f25ed54e04f5c-01
tracestate cptest=v1
user-agent Ruby
test id
otel-ruby--kafka-http--78c48697
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-8d326404,team=alpha
ot-baggage-routing-key rk-8d326404
traceparent 00-adf19a5e852cc5ff3b36f0c65d6cf836-f53e15b402932922-01
tracestate cptest=v1
x-cp-canary otel-ruby--kafka-grpc--e6fb74e2

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
baggage routing-key=rk-8d326404,team=alpha
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-adf19a5e852cc5ff3b36f0c65d6cf836-8da33a5d47a10596-01
tracestate cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
otel-ruby--kafka-grpc--e6fb74e2
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-84253a17,team=alpha
ot-baggage-routing-key rk-84253a17
traceparent 00-5d7ab895139612726d6b6e65bf4afaf3-99a00b706fa924df-01
tracestate cptest=v1
x-cp-canary otel-ruby--kafka-kafka--8bfa53bb

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-84253a17,team=alpha
traceparent 00-5d7ab895139612726d6b6e65bf4afaf3-638dd5379d415eb4-01
tracestate cptest=v1
test id
otel-ruby--kafka-kafka--8bfa53bb
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-7c04f7c7,team=alpha
ot-baggage-routing-key rk-7c04f7c7
traceparent 00-fd6dbbdcbf9ceaa1e0f13d82653f46d8-698407b955fbba13-01
tracestate cptest=v1
x-cp-canary otel-ruby--kafka-rabbitmq--93305124

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

baggage routing-key=rk-7c04f7c7,team=alpha
traceparent 00-fd6dbbdcbf9ceaa1e0f13d82653f46d8-f0b9f78a3a800fec-01
tracestate cptest=v1
test id
otel-ruby--kafka-rabbitmq--93305124
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_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-adc0d732,team=alpha
ot-baggage-routing-key rk-adc0d732
traceparent 00-dea02f21a4dccf7292012c80fa28a152-c6b32ae325c26cb4-01
tracestate cptest=v1
x-cp-canary otel-ruby--rabbitmq-http--806956c8

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
traceparent 00-70384fe6ccf0a681fceac6e4e43b8f40-0ac5040e6ddee5b9-01
user-agent Ruby
test id
otel-ruby--rabbitmq-http--806956c8
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_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-0255f736,team=alpha
ot-baggage-routing-key rk-0255f736
traceparent 00-877bbbb7ae3ee2aaec335d0107814333-443fdbaa0e828136-01
tracestate cptest=v1
x-cp-canary otel-ruby--rabbitmq-grpc--2f1be59c

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-cd19e0605a8f838650a818c4e9c8fa3d-ee0ac012652a998f-01
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
otel-ruby--rabbitmq-grpc--2f1be59c
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_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-f335cea0,team=alpha
ot-baggage-routing-key rk-f335cea0
traceparent 00-9dab8f26d99ab6412f446acb8dc4eccf-4e1c3ac64b632bd6-01
tracestate cptest=v1
x-cp-canary otel-ruby--rabbitmq-kafka--55c445e9

Observed at the sink on the outbound Kafka record headers

traceparent 00-a61bff6343d5eddfc8fa5d278b9ddba6-cf0953b7600b538e-01
test id
otel-ruby--rabbitmq-kafka--55c445e9
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_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-019da2c4,team=alpha
ot-baggage-routing-key rk-019da2c4
traceparent 00-b8d0b654c3de06cb8063e687d67a53bb-34dc7e1c9ab4c983-01
tracestate cptest=v1
x-cp-canary otel-ruby--rabbitmq-rabbitmq--a7c6f26a

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

traceparent 00-11f515992bdbebd3a1066ad81f6769c5-bd8e46a6db4b2172-01
test id
otel-ruby--rabbitmq-rabbitmq--a7c6f26a
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent

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