elph-ai 0.0.28

Unified LLM API with provider collections, auth resolution, and streaming
Documentation
use crate::logger::LoggingOptions;

/// No-op root span guard when the `tracing` feature is disabled.
pub struct RootSpanGuard;

/// Runtime tracing is never active without the `tracing` feature.
pub fn is_enabled() -> bool {
    false
}

/// Initialize tracing. No-op without the `tracing` feature.
pub fn init(_options: &LoggingOptions) {}

/// Flush pending spans. No-op without the `tracing` feature.
pub fn flush() {}

/// Start a root span. No-op without the `tracing` feature.
pub fn root_span(_name: &'static str) -> RootSpanGuard {
    RootSpanGuard
}