pub struct TelemetryConfig {
pub enabled: bool,
pub otlp_endpoint: String,
pub service_name: String,
pub sample_rate: f64,
pub export_traces: bool,
pub export_metrics: bool,
pub export_logs: bool,
}Expand description
OpenTelemetry configuration.
Controls OTLP trace/metric/log export to an OpenTelemetry collector. Disabled by default — enable and point to a collector (e.g., Jaeger, Grafana Tempo).
Fields§
§enabled: boolEnable OTLP telemetry export (default: false).
otlp_endpoint: StringOTLP gRPC collector endpoint (default: “http://localhost:4317”).
service_name: StringService name reported in OTLP traces (default: “ucotron”).
sample_rate: f64Trace sampling ratio, 0.0 to 1.0 (default: 1.0 = sample everything).
export_traces: boolExport traces via OTLP (default: true).
export_metrics: boolExport metrics via OTLP (default: true).
export_logs: boolExport logs via OTLP (default: false).
Trait Implementations§
Source§impl Clone for TelemetryConfig
impl Clone for TelemetryConfig
Source§fn clone(&self) -> TelemetryConfig
fn clone(&self) -> TelemetryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryConfig
impl Debug for TelemetryConfig
Source§impl Default for TelemetryConfig
impl Default for TelemetryConfig
Source§impl<'de> Deserialize<'de> for TelemetryConfig
impl<'de> Deserialize<'de> for TelemetryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TelemetryConfig
impl RefUnwindSafe for TelemetryConfig
impl Send for TelemetryConfig
impl Sync for TelemetryConfig
impl Unpin for TelemetryConfig
impl UnsafeUnpin for TelemetryConfig
impl UnwindSafe for TelemetryConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more