pub struct OtelConfig {Show 15 fields
pub enabled: Option<bool>,
pub service_name: Option<String>,
pub service_version: Option<String>,
pub service_namespace: Option<String>,
pub service_instance_id: Option<String>,
pub engine_ws_url: Option<String>,
pub metrics_enabled: Option<bool>,
pub metrics_export_interval_ms: Option<u64>,
pub reconnection_config: Option<ReconnectionConfig>,
pub shutdown_timeout_ms: Option<u64>,
pub channel_capacity: Option<usize>,
pub logs_enabled: Option<bool>,
pub logs_flush_interval_ms: Option<u64>,
pub logs_batch_size: Option<usize>,
pub fetch_instrumentation_enabled: Option<bool>,
}Expand description
Configuration for OpenTelemetry initialization
Fields§
§enabled: Option<bool>§service_name: Option<String>§service_version: Option<String>§service_namespace: Option<String>§service_instance_id: Option<String>§engine_ws_url: Option<String>§metrics_enabled: Option<bool>§metrics_export_interval_ms: Option<u64>§reconnection_config: Option<ReconnectionConfig>§shutdown_timeout_ms: Option<u64>Timeout in milliseconds for the shutdown sequence (default: 10,000)
channel_capacity: Option<usize>Capacity of the internal telemetry message channel (default: 10,000).
This controls the in-flight message buffer between exporters and the
WebSocket connection loop. Intentionally larger than
ReconnectionConfig::max_pending_messages to absorb bursts during
normal operation while limiting stale data across reconnects.
logs_enabled: Option<bool>Whether to enable the log exporter (default: true)
logs_flush_interval_ms: Option<u64>Log processor flush delay in milliseconds. Defaults to 100ms when not set.
logs_batch_size: Option<usize>Maximum number of log records exported per batch. Defaults to 1 when not set.
fetch_instrumentation_enabled: Option<bool>Whether to auto-instrument outgoing HTTP calls.
When Some(true) (default), execute_traced_request() can be used to
create CLIENT spans for reqwest requests. Set Some(false) to opt out.
None is treated as true.
Trait Implementations§
Source§impl Clone for OtelConfig
impl Clone for OtelConfig
Source§fn clone(&self) -> OtelConfig
fn clone(&self) -> OtelConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more