mirror of
https://github.com/openai/codex.git
synced 2026-04-30 03:12:20 +03:00
27 lines
512 B
Rust
27 lines
512 B
Rust
pub mod config;
|
|
|
|
pub mod otel_event_manager;
|
|
#[cfg(feature = "otel")]
|
|
pub mod otel_provider;
|
|
|
|
#[cfg(not(feature = "otel"))]
|
|
mod imp {
|
|
use reqwest::header::HeaderMap;
|
|
use tracing::Span;
|
|
|
|
pub struct OtelProvider;
|
|
|
|
impl OtelProvider {
|
|
pub fn from(_settings: &crate::config::OtelSettings) -> Option<Self> {
|
|
None
|
|
}
|
|
|
|
pub fn headers(_span: &Span) -> HeaderMap {
|
|
HeaderMap::new()
|
|
}
|
|
}
|
|
}
|
|
|
|
#[cfg(not(feature = "otel"))]
|
|
pub use imp::OtelProvider;
|