pub struct TracingConfig {
pub service_name: String,
pub service_version: String,
pub environment: String,
pub samplingrate: f64,
pub max_activespans: usize,
pub span_timeout: Duration,
pub enable_performance_attribution: bool,
pub enable_distributed_context: bool,
pub default_attributes: HashMap<String, String>,
pub export_endpoint: Option<String>,
pub export_batch_size: usize,
pub export_timeout: Duration,
}
Expand description
Distributed tracing system configuration
Fields§
§service_name: String
Service name for trace identification
service_version: String
Service version for compatibility tracking
environment: String
Environment (production, staging, development)
samplingrate: f64
Sampling rate (0.0 to 1.0)
max_activespans: usize
Maximum number of active spans
span_timeout: Duration
Span timeout duration
enable_performance_attribution: bool
Enable performance attribution
enable_distributed_context: bool
Enable distributed context propagation
default_attributes: HashMap<String, String>
Custom attributes to add to all spans
export_endpoint: Option<String>
Endpoint for trace export
export_batch_size: usize
Export batch size
export_timeout: Duration
Export timeout
Trait Implementations§
Source§impl Clone for TracingConfig
impl Clone for TracingConfig
Source§fn clone(&self) -> TracingConfig
fn clone(&self) -> TracingConfig
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 TracingConfig
impl Debug for TracingConfig
Source§impl Default for TracingConfig
impl Default for TracingConfig
Source§impl<'de> Deserialize<'de> for TracingConfig
impl<'de> Deserialize<'de> for TracingConfig
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 TracingConfig
impl RefUnwindSafe for TracingConfig
impl Send for TracingConfig
impl Sync for TracingConfig
impl Unpin for TracingConfig
impl UnwindSafe for TracingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more