Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,16 @@ 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

| Format | Configuration Value |
|---|---|
| [Datadog][1] | `datadog` |
| [W3C Trace Context][2] | `tracecontext` |
| [B3 Single][3] | `b3` |
| [B3 Multi][4] | `b3multi` |

### Configuration

Expand All @@ -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
Expand Down Expand Up @@ -751,6 +753,8 @@ async fn hyper_handler(req: Request<Incoming>) -> Response<Full<Bytes>> {

[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 %}}

Expand Down
Loading