/*-------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation.  All rights reserved.
 *
 * documentdb_gateway_core/src/telemetry/mod.rs
 *
 * Telemetry infrastructure for the DocumentDB gateway.
 * Provides OpenTelemetry-based metrics.
 *
 *-------------------------------------------------------------------------
 */

mod log_request_fail;
mod telemetry_provider;

pub mod client_info;
pub mod config;
pub mod context_propagation;
pub mod event_id;
pub mod metrics;
pub mod sql_commenter;
pub mod telemetry_manager;
pub mod tracing_export;
pub mod utils;

// Re-export commonly used types
pub use config::{TelemetryConfig, TelemetryOptions};
pub use log_request_fail::log_request_failure;
pub use metrics::{record_gateway_metrics, record_startup_metrics, MetricsConfig, MetricsOptions};
pub use telemetry_manager::TelemetryManager;
pub use telemetry_provider::TelemetryProvider;
pub use tracing_export::{create_tracer_provider, TracingConfig, TracingOptions};
pub use utils::{ns_to_ms, NANOS_PER_MILLISECOND};
