pub struct TracingConfig {
pub enabled: bool,
pub service_name: String,
pub service_version: String,
pub log_level: Level,
pub enable_console: bool,
pub enable_json: bool,
pub enable_otlp: bool,
pub otlp_endpoint: Option<String>,
pub enable_jaeger: bool,
pub jaeger_endpoint: Option<String>,
pub sample_rate: f64,
pub max_attributes: usize,
}Expand description
Configuration for tracing system
Fields§
§enabled: bool§service_name: String§service_version: String§log_level: Level§enable_console: bool§enable_json: bool§enable_otlp: bool§otlp_endpoint: Option<String>§enable_jaeger: bool§jaeger_endpoint: Option<String>§sample_rate: f64§max_attributes: usizeTrait 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§fn default() -> TracingConfig
fn default() -> TracingConfig
Returns the “default value” for a type. 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