pub struct Tracer<S, T> { /* private fields */ }Expand description
Tracer.
§Examples
use cf_rustracing::Tracer;
use cf_rustracing::sampler::AllSampler;
let (tracer, mut span_rx) = Tracer::new(AllSampler);
{
let _span = tracer.span("foo").start_with_state(());
}
let span = span_rx.recv().await.unwrap();
assert_eq!(span.operation_name(), "foo");Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, T> Freeze for Tracer<S, T>
impl<S, T> RefUnwindSafe for Tracer<S, T>where
S: RefUnwindSafe,
impl<S, T> Send for Tracer<S, T>
impl<S, T> Sync for Tracer<S, T>
impl<S, T> Unpin for Tracer<S, T>
impl<S, T> UnwindSafe for Tracer<S, T>where
S: RefUnwindSafe,
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