pub struct TracingConfig {
pub service_name: String,
pub service_version: String,
pub exporter: ExporterConfig,
pub sample_rate: f64,
pub batch_size: usize,
}Expand description
Configuration for the tracing subsystem.
Fields§
§service_name: StringValue of the service.name resource attribute (e.g. "checkout-service").
service_version: StringValue of the service.version resource attribute.
exporter: ExporterConfigWhere to send completed spans.
sample_rate: f64Fraction of requests to sample. 1.0 = 100%, 0.1 = 10%.
batch_size: usizeMaximum number of spans to accumulate before flushing to the exporter.
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 (const: unstable) · 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
Auto Trait Implementations§
impl Freeze for TracingConfig
impl RefUnwindSafe for TracingConfig
impl Send for TracingConfig
impl Sync for TracingConfig
impl Unpin for TracingConfig
impl UnsafeUnpin 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