pub struct OtelTracingConfig {
pub service_name: String,
pub environment: String,
pub jaeger_endpoint: Option<String>,
pub otlp_endpoint: Option<String>,
pub protocol: String,
pub sampling_rate: f64,
}Expand description
OpenTelemetry tracing configuration
Fields§
§service_name: StringService name for traces
environment: StringDeployment environment (development, staging, production)
jaeger_endpoint: Option<String>Jaeger endpoint for trace export
otlp_endpoint: Option<String>OTLP endpoint (alternative to Jaeger)
protocol: StringProtocol: grpc or http
sampling_rate: f64Sampling rate (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for OtelTracingConfig
impl Clone for OtelTracingConfig
Source§fn clone(&self) -> OtelTracingConfig
fn clone(&self) -> OtelTracingConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OtelTracingConfig
impl Debug for OtelTracingConfig
Auto Trait Implementations§
impl Freeze for OtelTracingConfig
impl RefUnwindSafe for OtelTracingConfig
impl Send for OtelTracingConfig
impl Sync for OtelTracingConfig
impl Unpin for OtelTracingConfig
impl UnwindSafe for OtelTracingConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)