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
//! OpenTelemetry Integration for RustAPI
//!
//! This module provides OpenTelemetry integration with support for:
//! - Distributed tracing with OTLP exporter
//! - Metrics collection
//! - Trace context propagation (W3C Trace Context)
//! - Automatic span creation for HTTP requests
//!
//! # Example
//!
//! ```rust,no_run
//! use rustapi_core::RustApi;
//! use rustapi_extras::otel::{OtelConfig, OtelLayer};
//!
//! #[tokio::main]
//! async fn main() {
//! let config = OtelConfig::builder()
//! .service_name("my-api")
//! .endpoint("http://localhost:4317")
//! .build();
//!
//! let app = RustApi::new()
//! .layer(OtelLayer::new(config))
//! .run("0.0.0.0:3000")
//! .await
//! .unwrap();
//! }
//! ```
pub use ;
pub use OtelLayer;
pub use ;