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 pub mod collector {
14 //! OTLP exporter integrations supported by rama.
15
16 pub use ::rama_grpc::service::opentelemetry::{HttpExporter, OtelExporter as GrpcExporter};
17 }
18}
19
20pub mod tracing {
21 //! Tracing core rexport and utilities, for your conveneince
22
23 pub use ::rama_core::telemetry::tracing::*;
24
25 pub use ::tracing_subscriber as subscriber;
26}