pub struct TelemetryConfig {
pub enabled: bool,
pub service_name: String,
pub service_version: String,
pub service_namespace: Option<String>,
pub environment: Option<String>,
pub otlp: OtlpConfig,
pub jaeger: Option<JaegerConfig>,
pub zipkin: Option<ZipkinConfig>,
pub sampling: SamplingConfig,
pub batch: BatchProcessingConfig,
pub resource_attributes: HashMap<String, String>,
pub console_exporter: bool,
}
Expand description
Telemetry configuration for OpenTelemetry
Fields§
§enabled: bool
Enable telemetry
service_name: String
Service name for traces
service_version: String
Service version
service_namespace: Option<String>
Service namespace (e.g., “mcp”, “loxone”)
environment: Option<String>
Deployment environment (dev, staging, prod)
otlp: OtlpConfig
OTLP exporter configuration
jaeger: Option<JaegerConfig>
Jaeger exporter configuration
zipkin: Option<ZipkinConfig>
Zipkin exporter configuration
sampling: SamplingConfig
Sampling configuration
batch: BatchProcessingConfig
Batch processing configuration
resource_attributes: HashMap<String, String>
Custom resource attributes
console_exporter: bool
Enable console exporter for development
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 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