pub struct TelemetryConfig {
pub endpoint: Option<String>,
pub headers: HashMap<String, String>,
pub service_name: String,
pub service_version: String,
pub sample_ratio: f64,
pub capture_content: bool,
pub traces_enabled: bool,
pub metrics_enabled: bool,
}Expand description
Fully-resolved telemetry configuration. Every field is required: defaults
and settings-layer merging live in TelemetrySettings, so a value here is
always deliberate.
Fields§
§endpoint: Option<String>Base URL for the OTLP/HTTP collector, required whenever a signal needs an exporter.
headers: HashMap<String, String>§service_name: String§service_version: String§sample_ratio: f64§capture_content: bool§traces_enabled: bool§metrics_enabled: boolAuto 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