1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # ADK Telemetry
//!
//! Production-grade observability for ADK using structured logging and distributed tracing.
//!
//! ## Features
//! - Structured logging with `tracing`
//! - OpenTelemetry integration for distributed tracing
//! - OTLP export for observability backends (Jaeger, Datadog, etc.)
//! - Automatic context propagation
//!
//! ## Usage
//!
//! ```rust
//! use adk_telemetry::{init_telemetry, info, instrument};
//!
//! fn main() -> Result<(), adk_telemetry::TelemetryError> {
//! // Initialize telemetry in your main
//! init_telemetry("my-service")?;
//!
//! // Use logging macros
//! #[instrument]
//! async fn my_function() {
//! info!("Function called");
//! }
//! Ok(())
//! }
//! ```
// Re-export tracing macros for convenience
pub use ;
// Re-export span helpers
pub use *;
// Re-export span exporter (ADK-Go style)
pub use *;
// Re-export init functions and error type
pub use ;
// Re-export metrics
pub use global;
pub use ;