Struct rustracing_jaeger::Tracer
source · pub struct Tracer { /* private fields */ }
Expand description
Tracer.
Implementations
sourceimpl Tracer
impl Tracer
sourcepub fn new<S>(sampler: S) -> (Self, SpanReceiver)where
S: Sampler<SpanContextState> + Send + Sync + 'static,
pub fn new<S>(sampler: S) -> (Self, SpanReceiver)where
S: Sampler<SpanContextState> + Send + Sync + 'static,
Makes a new Tracer
instance.
sourcepub fn clone_with_sampler<T>(&self, sampler: T) -> Selfwhere
T: Sampler<SpanContextState> + Send + Sync + 'static,
pub fn clone_with_sampler<T>(&self, sampler: T) -> Selfwhere
T: Sampler<SpanContextState> + Send + Sync + 'static,
Clone with the given sampler
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Tracer
impl Send for Tracer
impl !Sync for Tracer
impl Unpin for Tracer
impl !UnwindSafe for Tracer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more