pub struct TracingSystem { /* private fields */ }Expand description
Tracing system for managing distributed tracing
Implementations§
Source§impl TracingSystem
impl TracingSystem
Sourcepub fn new(config: TracingConfig) -> TracingSystem
pub fn new(config: TracingConfig) -> TracingSystem
Create a new tracing system
Sourcepub fn init(config: TracingConfig) -> Result<TracingSystem, Error>
pub fn init(config: TracingConfig) -> Result<TracingSystem, Error>
Initialize the tracing system
Sourcepub fn config(&self) -> &TracingConfig
pub fn config(&self) -> &TracingConfig
Get the configuration
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if tracing is enabled
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TracingSystem
impl RefUnwindSafe for TracingSystem
impl Send for TracingSystem
impl Sync for TracingSystem
impl Unpin for TracingSystem
impl UnwindSafe for TracingSystem
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