pub struct TelemetryConfig {
pub otlp_endpoint: String,
pub service_name: String,
pub observability_mode: Option<String>,
}Expand description
OpenTelemetry configuration.
Fields§
§otlp_endpoint: StringOTLP endpoint (e.g., “http://localhost:4317”)
service_name: StringService name reported to the collector
observability_mode: Option<String>Observability verbosity mode: “production”, “analysis”, or “debug”.
Overridden by HEARTBIT_OBSERVABILITY env var.
Trait Implementations§
Source§impl Debug for TelemetryConfig
impl Debug 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