From 01f1cb86b2e974fe747447813f28b186d00126bb Mon Sep 17 00:00:00 2001 From: Jordan Gonzalez <30836115+duncanista@users.noreply.github.com> Date: Tue, 16 Jun 2026 14:46:47 -0400 Subject: [PATCH] docs(tracing): document B3 propagation support in the Rust SDK Adds B3 Single (`b3`) and B3 Multi (`b3multi`) as supported propagation formats in the Rust tab of the trace context propagation page. Updates the introductory paragraph and the env-var example to reflect that the Rust SDK now supports the same four propagation formats the other Datadog tracers do. Depends on the `datadog-opentelemetry` crate landing B3 support (DataDog/dd-trace-rs#253, #254, #255, #256). --- .../trace_context_propagation/_index.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/content/en/tracing/trace_collection/trace_context_propagation/_index.md b/content/en/tracing/trace_collection/trace_context_propagation/_index.md index 064279f1574..913e4e6051d 100644 --- a/content/en/tracing/trace_collection/trace_context_propagation/_index.md +++ b/content/en/tracing/trace_collection/trace_context_propagation/_index.md @@ -630,7 +630,7 @@ void SetHeaderValues(MessageHeaders headers, string name, string value) The Datadog Rust SDK is built on the OpenTelemetry (OTel) SDK. -Trace context propagation is handled by the OTel SDK, which is configured by `datadog-opentelemetry` to support both `datadog` and `tracecontext` (W3C) formats. +Trace context propagation is handled by the OTel SDK, which is configured by `datadog-opentelemetry` to support `datadog`, `tracecontext` (W3C), and B3 formats. ### Supported formats @@ -638,6 +638,8 @@ Trace context propagation is handled by the OTel SDK, which is configured by `da |---|---| | [Datadog][1] | `datadog` | | [W3C Trace Context][2] | `tracecontext` | +| [B3 Single][3] | `b3` | +| [B3 Multi][4] | `b3multi` | ### Configuration @@ -646,8 +648,8 @@ You can control which propagation formats are used by setting the `DD_TRACE_PROP For example: ```bash -# To support both W3C and Datadog -export DD_TRACE_PROPAGATION_STYLE="tracecontext,datadog" +# To support W3C, Datadog, and B3 +export DD_TRACE_PROPAGATION_STYLE="tracecontext,datadog,b3multi,b3" ``` ### Manual injection and extraction @@ -751,6 +753,8 @@ async fn hyper_handler(req: Request) -> Response> { [1]: #datadog-format [2]: https://www.w3.org/TR/trace-context/ +[3]: https://github.com/openzipkin/b3-propagation#single-header +[4]: https://github.com/openzipkin/b3-propagation#multiple-headers {{% /tab %}}