Crate datadog_tracing

Source
Expand description

Utilities to integrate Rust services with Datadog using opentelemetry, tracing, and other open source libraries.

This is an opinionated crate providing the building blocks for a setup that works with Datadog. It has been tested with services using axum hosted on AWS ECS, with propagation working when requests are made to other services using reqwest.

Re-exports§

pub use init::init;

Modules§

formatter
An event formatter to emit events in a way that Datadog can correlate them with traces.
init
shutdown
Shutdown utilities.
tracer
Trace and layer builders to export traces to the Datadog agent.

Functions§

shutdown_tracer_provider
Shut down the current tracer provider. This will invoke the shutdown method on all span processors. span processors should export remaining spans before return