The Datadog Rust SDK is in Preview.

The Datadog Rust SDK is open source. For more information, see the dd-trace-rs repository or the datadog-opentelemetry crate.

Language and library support

The Rust SDK relies on specific versions of the Rust compiler and the OpenTelemetry crate.

ComponentRequirement
Rust Version1.84 (MSRV)
OpenTelemetry CrateVersion 0.31

Integrations

The Datadog Rust SDK does not provide automatic instrumentation.

You must manually instrument your application using the OpenTelemetry API. This includes:

  • Creating spans for functions or operations.
  • Adding attributes (tags) and events to spans.
  • Manually propagating trace context for distributed traces.

For examples, see the Rust Custom Instrumentation documentation.

Further reading

Additional helpful documentation, links, and articles: