rama/telemetry.rs
1//! Rama telemetry modules.
2
3#[cfg(feature = "opentelemetry")]
4#[cfg_attr(docsrs, doc(cfg(feature = "opentelemetry")))]
5pub mod opentelemetry {
6 //! openelemetry module re-exports
7 //!
8 //! This module re-exports the crates supported and used by rama for (open) telemetry,
9 //! such that you can make use of it for custom metrics, registries and more.
10
11 pub use ::rama_core::telemetry::opentelemetry::*;
12
13 #[cfg(feature = "grpc")]
14 #[cfg_attr(docsrs, doc(cfg(feature = "grpc")))]
15 pub mod collector {
16 //! OTLP exporter integrations supported by rama.
17
18 pub use ::rama_grpc::service::opentelemetry::OtelExporter;
19 }
20}
21
22pub mod tracing {
23 //! Tracing core rexport and utilities, for your conveneince
24
25 #[doc(inline)]
26 pub use ::rama_core::telemetry::tracing::*;
27
28 pub use ::tracing_subscriber as subscriber;
29}