datadog-rust

Rust in-code datadog-opentelemetry0.3.1

attach datadog-opentelemetry crate + opentelemetry propagator API

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

Not compared with the uninstrumented Rust relay (no run on this site measured it on rustc 1.99.1 (58cf8f9c3 2026-10-13)).

Explanations

dd-trace .NET, Ruby, Rust and PHP do not emit the legacy ot-baggage-* headers

by-design ot-baggage-* is undocumented legacy behaviour of dd-trace java/js/go; .NET never had it, Ruby removed it with OpenTracing, Rust and PHP do not emit it.

dd-trace-java, dd-trace-js and dd-trace-go carry ot-baggage-* across all 16 boundaries; these four tracers ignore the seeded header (not extracted, not re-emitted). Datadog's propagation reference lists the styles datadog, tracecontext, b3single, b3multi, baggage, none; ot-baggage appears nowhere, so the headers the first group emits are legacy behaviour of their datadog style rather than a configurable format.

Per tracer: dd-trace-rb removed OpenTracing (and with it ot-baggage-*) in 2.0 (PR #3443; maintainer confirmation in #4055; W3C baggage landed later in 2.13.0 via #4493/#4505). dd-trace-dotnet never had it: a code search for ot-baggage returns zero results. datadog-opentelemetry (Rust) has no ot-baggage-* style. dd-trace-php can emit ot-baggage-* in some configurations (#3614, nginx rejecting ot-baggage-true-client-ip), so "never emits" would overstate, but at 1.25.0 with the harness configuration it measured absent on every delivered boundary.

The values still flow via W3C baggage wherever that header works for the same tracer.

16 cells affected

datadog-ot-baggage-not-implemented

datadog-opentelemetry (Rust) propagates W3C baggage since 0.4.0; the Datadog docs still say it cannot

fixed later fixed in 0.4.0 W3C baggage joined the Rust SDK's composite propagator in dd-trace-rs PR #200 (merged 12 May 2026, first shipped in datadog-opentelemetry 0.4.0 on 11 June 2026); 0.3.x had no baggage style, so the seeded header was dropped on every boundary.

This version predates the fix: the 16 cells below still fail here and pass from 0.4.0.

Measured: datadog-opentelemetry 0.3.0–0.3.3 drop baggage on all 16 boundaries while traceparent and tracestate cross every one; 0.4.0 and every later version carry baggage across all 16 with no configuration. The change is PR #200 "feat(baggage)!: add support for w3c baggage": it adds TracePropagationStyle::Baggage, delegates to the OTel SDK BaggagePropagator, and puts baggage into the default style list (datadog,tracecontext,baggage, matching the other Datadog SDKs). PR #223 (merged 28 May 2026, also first in 0.4.0) added DD_TRACE_BAGGAGE_TAG_KEYS, which promotes baggage entries to span tags.

As of 11 November 2026 the Datadog docs are out of date on this point: the Trace Context Propagation page footnotes its propagation-styles table with "Note: baggage is not supported in Rust", and its baggage-as-span-tags table lists Rust as "Not supported". Both have been wrong since PR #200 merged on 12 May 2026 and 0.4.0 shipped on 11 June 2026. The harness measures propagation, not span tags, so the cells here contradict the first claim directly; the second is contradicted by the merged PR #223.

What a user can do: on 0.4.0+ nothing; baggage is on by default (set DD_TRACE_PROPAGATION_STYLE=datadog,tracecontext to turn it off). On 0.3.x there is no flag to enable it; upgrade. The legacy ot-baggage-* headers are a separate matter (datadog-ot-baggage-not-implemented).

16 cells affected

datadog-rust-baggage-since-0.4.0

Versions measured

Tracer
datadog-opentelemetry 0.3.1 0.3.1 on crates github
Runtime
rustc 1.99.1 (58cf8f9c3 2026-10-13)
Setup tier
in-code Instrumentation is woven into application code: wrappers at every client/server construction site and contexts threaded through (Go contribs, Rust propagator API with hand-written carriers).
Attach
datadog-opentelemetry crate + opentelemetry propagator API
Relay source
relays/rust/datadog
Ran at
10 Nov 2026, 18:31 UTC
Harness
8058e87 · measured in backtest-datadog-rust-0.3.1
Raw JSON
0.3.1.json → variants[id = "datadog-rust"]

Libraries

grpctonic 0.14.9
http_clientreqwest 0.13.5
http_serveraxum 0.8.9
kafkarust-rdkafka 0.39.0
propagationopentelemetry 0.31.0 + opentelemetry_sdk 0.31.0 + opentelemetry-http 0.31.0
rabbitmqlapin 4.12.3

Configuration

DD_TRACE_PROPAGATION_STYLEdatadog,tracecontext,baggage

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-dcc6326c,team=alpha
ot-baggage-routing-key rk-dcc6326c
traceparent 00-4f9e6f1049fed20908ebb763233cb6f3-46adbb7202b702cb-01
tracestate cptest=v1
x-cp-canary datadog-rust--http-http--379b4258

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
traceparent 00-4f9e6f1049fed20908ebb763233cb6f3-4d660eb924995c84-01
tracestate dd=s:1;p:4d660eb924995c84;t.tid:4f9e6f1049fed209;t.dm:-0,cptest=v1
x-datadog-parent-id 5577161376890707076
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=4f9e6f1049fed209,_dd.p.dm=-0
x-datadog-trace-id 642809008251254515
test id
datadog-rust--http-http--379b4258
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP gRPC baggage tracestate traceparent ot-baggage delivered via grpc native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-fa535304,team=alpha
ot-baggage-routing-key rk-fa535304
traceparent 00-b4b34dcc0a64eebbec547f98c3e99dd1-00127b0bde6dc04d-01
tracestate cptest=v1
x-cp-canary datadog-rust--http-grpc--fcf114e8

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
traceparent 00-b4b34dcc0a64eebbec547f98c3e99dd1-60c30643af3187d3-01
tracestate dd=s:1;p:60c30643af3187d3;t.dm:-0;t.tid:b4b34dcc0a64eebb,cptest=v1
user-agent tonic/0.14.9
x-datadog-parent-id 6972423535871494099
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=b4b34dcc0a64eebb
x-datadog-trace-id 17029376385093311953
test id
datadog-rust--http-grpc--fcf114e8
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-e5b49d4a,team=alpha
ot-baggage-routing-key rk-e5b49d4a
traceparent 00-08c17fe114a5e743e724859cfec333ac-f1fee4d210a93d64-01
tracestate cptest=v1
x-cp-canary datadog-rust--http-kafka--04fd61d3

Observed at the sink on the outbound Kafka record headers

traceparent 00-08c17fe114a5e743e724859cfec333ac-e58f57767b27890d-01
tracestate dd=s:1;p:e58f57767b27890d;t.dm:-0;t.tid:08c17fe114a5e743,cptest=v1
x-datadog-parent-id 16541536122739067149
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=08c17fe114a5e743
x-datadog-trace-id 16655584231258534828
test id
datadog-rust--http-kafka--04fd61d3
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-85fbf9c4,team=alpha
ot-baggage-routing-key rk-85fbf9c4
traceparent 00-0a469c156cae42e09b978eaa866ddbe4-5c7878c9d0b9f37a-01
tracestate cptest=v1
x-cp-canary datadog-rust--http-rabbitmq--8ef822fc

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

traceparent 00-0a469c156cae42e09b978eaa866ddbe4-9120dacbc459bf3f-01
tracestate dd=s:1;p:9120dacbc459bf3f;t.dm:-0;t.tid:0a469c156cae42e0,cptest=v1
x-datadog-parent-id 10457598903461723967
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=0a469c156cae42e0
x-datadog-trace-id 11211586660413070308
test id
datadog-rust--http-rabbitmq--8ef822fc
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http native: present_same_trace

Seeded on the inbound gRPC metadata

baggage routing-key=rk-96c00752,team=alpha
ot-baggage-routing-key rk-96c00752
traceparent 00-37788935164a91621122bfc2ffabf6a8-0e878e48685d3044-01
tracestate cptest=v1
x-cp-canary datadog-rust--grpc-http--937b1eb7

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
traceparent 00-37788935164a91621122bfc2ffabf6a8-0bef68637d8eb209-01
tracestate dd=s:1;p:0bef68637d8eb209;t.dm:-0;t.tid:37788935164a9162,cptest=v1
x-datadog-parent-id 860020830368608777
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=37788935164a9162
x-datadog-trace-id 1234760092086957736
test id
datadog-rust--grpc-http--937b1eb7
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc native: present_same_trace

Seeded on the inbound gRPC metadata

baggage routing-key=rk-e1fe9e73,team=alpha
ot-baggage-routing-key rk-e1fe9e73
traceparent 00-f65473a68463d554b1834f1a6c08289a-1501a3278c282d48-01
tracestate cptest=v1
x-cp-canary datadog-rust--grpc-grpc--265cfd11

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
traceparent 00-f65473a68463d554b1834f1a6c08289a-dbb0ab90dc36f9a1-01
tracestate dd=s:1;p:dbb0ab90dc36f9a1;t.dm:-0;t.tid:f65473a68463d554,cptest=v1
user-agent tonic/0.14.9
x-datadog-parent-id 15830341328865524129
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=f65473a68463d554
x-datadog-trace-id 12791154341562558618
test id
datadog-rust--grpc-grpc--265cfd11
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka native: present_same_trace

Seeded on the inbound gRPC metadata

baggage routing-key=rk-0a6cea62,team=alpha
ot-baggage-routing-key rk-0a6cea62
traceparent 00-686675e390e0ccf8dc96e06a20990aaa-5db085e1d3a871d5-01
tracestate cptest=v1
x-cp-canary datadog-rust--grpc-kafka--5e5d4432

Observed at the sink on the outbound Kafka record headers

traceparent 00-686675e390e0ccf8dc96e06a20990aaa-cb7df58d27697dfe-01
tracestate dd=s:1;p:cb7df58d27697dfe;t.tid:686675e390e0ccf8;t.dm:-0,cptest=v1
x-datadog-parent-id 14663145948388621822
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=686675e390e0ccf8,_dd.p.dm=-0
x-datadog-trace-id 15895138681268800170
test id
datadog-rust--grpc-kafka--5e5d4432
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound gRPC metadata

baggage routing-key=rk-440871ec,team=alpha
ot-baggage-routing-key rk-440871ec
traceparent 00-18b2c093879f1d9d87c38783556dfc87-409a6f26c5f0301f-01
tracestate cptest=v1
x-cp-canary datadog-rust--grpc-rabbitmq--a9378b8d

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

traceparent 00-18b2c093879f1d9d87c38783556dfc87-26a245cadea9a662-01
tracestate dd=s:1;p:26a245cadea9a662;t.dm:-0;t.tid:18b2c093879f1d9d,cptest=v1
x-datadog-parent-id 2783864257289758306
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=18b2c093879f1d9d
x-datadog-trace-id 9782811813722586247
test id
datadog-rust--grpc-rabbitmq--a9378b8d
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http native: present_same_trace

Seeded on the inbound Kafka record headers

baggage routing-key=rk-9d72efef,team=alpha
ot-baggage-routing-key rk-9d72efef
traceparent 00-8bb83524db6219cd254b859e1ab0ce77-d25ec5c946f12d82-01
tracestate cptest=v1
x-cp-canary datadog-rust--kafka-http--f28f777d

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 48
content-type application/json
traceparent 00-8bb83524db6219cd254b859e1ab0ce77-34b53f2ecca2aac7-01
tracestate dd=s:1;p:34b53f2ecca2aac7;t.tid:8bb83524db6219cd;t.dm:-0,cptest=v1
x-datadog-parent-id 3798011330991139527
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=8bb83524db6219cd,_dd.p.dm=-0
x-datadog-trace-id 2687388516755754615
test id
datadog-rust--kafka-http--f28f777d
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc native: present_same_trace

Seeded on the inbound Kafka record headers

baggage routing-key=rk-bd467319,team=alpha
ot-baggage-routing-key rk-bd467319
traceparent 00-eabe44a22955cf3ce82cf71a72507935-1850023cd6ef5f3d-01
tracestate cptest=v1
x-cp-canary datadog-rust--kafka-grpc--d2afbb47

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
traceparent 00-eabe44a22955cf3ce82cf71a72507935-b9f28c001d390aca-01
tracestate dd=s:1;p:b9f28c001d390aca;t.dm:-0;t.tid:eabe44a22955cf3c,cptest=v1
user-agent tonic/0.14.9
x-datadog-parent-id 13398925773498813130
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=eabe44a22955cf3c
x-datadog-trace-id 16730018408733636917
test id
datadog-rust--kafka-grpc--d2afbb47
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka native: present_same_trace

Seeded on the inbound Kafka record headers

baggage routing-key=rk-0fa0613d,team=alpha
ot-baggage-routing-key rk-0fa0613d
traceparent 00-5e4daaf64c167c1d864f9bf6b42ff768-d65881c7bf1eac6a-01
tracestate cptest=v1
x-cp-canary datadog-rust--kafka-kafka--4e80a9f3

Observed at the sink on the outbound Kafka record headers

traceparent 00-5e4daaf64c167c1d864f9bf6b42ff768-fa68c97b5f2c4bdb-01
tracestate dd=s:1;p:fa68c97b5f2c4bdb;t.dm:-0;t.tid:5e4daaf64c167c1d,cptest=v1
x-datadog-parent-id 18043893438774791131
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=5e4daaf64c167c1d
x-datadog-trace-id 9678125608129787752
test id
datadog-rust--kafka-kafka--4e80a9f3
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound Kafka record headers

baggage routing-key=rk-2d80b29f,team=alpha
ot-baggage-routing-key rk-2d80b29f
traceparent 00-83c8053f8e5a5fba7e3a484b2948f707-0b169f92db35f3b5-01
tracestate cptest=v1
x-cp-canary datadog-rust--kafka-rabbitmq--1085d773

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

traceparent 00-83c8053f8e5a5fba7e3a484b2948f707-89f980bb77befddf-01
tracestate dd=s:1;p:89f980bb77befddf;t.dm:-0;t.tid:83c8053f8e5a5fba,cptest=v1
x-datadog-parent-id 9942119195053325791
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=83c8053f8e5a5fba
x-datadog-trace-id 9095661885080532743
test id
datadog-rust--kafka-rabbitmq--1085d773
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ HTTP baggage tracestate traceparent ot-baggage delivered via http native: present_same_trace

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-2aa10b89,team=alpha
ot-baggage-routing-key rk-2aa10b89
traceparent 00-be8c79790ceef2afbf4f0a7417cbbec1-5c7cdfa29e48b692-01
tracestate cptest=v1
x-cp-canary datadog-rust--rabbitmq-http--68fa1190

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 51
content-type application/json
traceparent 00-be8c79790ceef2afbf4f0a7417cbbec1-4c9d4702c9767187-01
tracestate dd=s:1;p:4c9d4702c9767187;t.tid:be8c79790ceef2af;t.dm:-0,cptest=v1
x-datadog-parent-id 5520646795521585543
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=be8c79790ceef2af,_dd.p.dm=-0
x-datadog-trace-id 13785248478136090305
test id
datadog-rust--rabbitmq-http--68fa1190
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ gRPC baggage tracestate traceparent ot-baggage delivered via grpc native: present_same_trace

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-da88a35f,team=alpha
ot-baggage-routing-key rk-da88a35f
traceparent 00-011246640dc6d85bf64a50c7f08656a6-7247a8eaae4faa6c-01
tracestate cptest=v1
x-cp-canary datadog-rust--rabbitmq-grpc--8f1ba92d

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
traceparent 00-011246640dc6d85bf64a50c7f08656a6-d67836b5797ca558-01
tracestate dd=s:1;p:d67836b5797ca558;t.dm:-0;t.tid:011246640dc6d85b,cptest=v1
user-agent tonic/0.14.9
x-datadog-parent-id 15454162274377049432
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=011246640dc6d85b
x-datadog-trace-id 17747086101270910630
test id
datadog-rust--rabbitmq-grpc--8f1ba92d
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ Kafka baggage tracestate traceparent ot-baggage delivered via kafka native: present_same_trace

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-6d4b1577,team=alpha
ot-baggage-routing-key rk-6d4b1577
traceparent 00-ab17cc344a02f8db3ffee37b81b9c51c-dc952a6d46098b44-01
tracestate cptest=v1
x-cp-canary datadog-rust--rabbitmq-kafka--b313ccf0

Observed at the sink on the outbound Kafka record headers

traceparent 00-ab17cc344a02f8db3ffee37b81b9c51c-72cb3e9a93fab1bf-01
tracestate dd=s:1;p:72cb3e9a93fab1bf;t.dm:-0;t.tid:ab17cc344a02f8db,cptest=v1
x-datadog-parent-id 8271773974224613823
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.dm=-0,_dd.p.tid=ab17cc344a02f8db
x-datadog-trace-id 4611373188070884636
test id
datadog-rust--rabbitmq-kafka--b313ccf0
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-0fc1c806,team=alpha
ot-baggage-routing-key rk-0fc1c806
traceparent 00-0bf302fc0ebdcd86fecdfbea34727aa1-750f9b7e0f9b9aea-01
tracestate cptest=v1
x-cp-canary datadog-rust--rabbitmq-rabbitmq--157d43fc

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

traceparent 00-0bf302fc0ebdcd86fecdfbea34727aa1-72fd2e3fc487dcf0-01
tracestate dd=s:1;p:72fd2e3fc487dcf0;t.tid:0bf302fc0ebdcd86;t.dm:-0,cptest=v1
x-datadog-parent-id 8285829740846636272
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=0bf302fc0ebdcd86,_dd.p.dm=-0
x-datadog-trace-id 18360608239180216993
test id
datadog-rust--rabbitmq-rabbitmq--157d43fc
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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