datadog_tracing/
lib.rs

1//! Utilities to integrate Rust services with Datadog using [`opentelemetry`],
2//! [`tracing`], and other open source libraries.
3//!
4//! This is an opinionated crate providing the building blocks for a setup that
5//! works with Datadog. It has been tested with services using [`axum`] hosted
6//! on AWS ECS, with propagation working when requests are made to other services
7//! using [`reqwest`].
8//!
9//! [`axum`]: https://github.com/tokio-rs/axum
10//! [`reqwest`]: https://docs.rs/reqwest/latest/reqwest/
11
12#[cfg(feature = "axum")]
13pub mod axum;
14pub mod formatter;
15pub mod init;
16pub mod shutdown;
17pub mod tracer;
18
19pub use init::init;
20pub use opentelemetry::global::shutdown_tracer_provider;