[−][src]Struct reqray::CallTreeCollector
A tracing::Subscriber which collects call trees and hands finished trees to a FinishedCallTreeProcessor.
Use CallTreeCollector::default() if you want to log all call trees with the standard configuration.
Use CallTreeCollectorBuilder together with e.g. LoggingCallTreeCollectorBuilder to customize your setup.
Trait Implementations
impl Default for CallTreeCollector<LoggingCallTreeCollector>
[src]
impl<S, H> Layer<S> for CallTreeCollector<H> where
S: Subscriber + for<'span> LookupSpan<'span> + Debug,
H: FinishedCallTreeProcessor + 'static,
[src]
S: Subscriber + for<'span> LookupSpan<'span> + Debug,
H: FinishedCallTreeProcessor + 'static,
pub fn new_span(&self, _attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
[src]
pub fn on_enter(&self, _id: &Id, ctx: Context<'_, S>)
[src]
pub fn on_exit(&self, id: &Id, ctx: Context<'_, S>)
[src]
pub fn on_close(&self, id: Id, ctx: Context<'_, S>)
[src]
pub fn register_callsite(
&self,
metadata: &'static Metadata<'static>
) -> Interest
[src]
&self,
metadata: &'static Metadata<'static>
) -> Interest
pub fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool
[src]
pub fn on_record(&self, _span: &Id, _values: &Record<'_>, _ctx: Context<'_, S>)
[src]
pub fn on_follows_from(&self, _span: &Id, _follows: &Id, _ctx: Context<'_, S>)
[src]
pub fn on_event(&self, _event: &Event<'_>, _ctx: Context<'_, S>)
[src]
pub fn on_id_change(&self, _old: &Id, _new: &Id, _ctx: Context<'_, S>)
[src]
pub fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
[src]
L: Layer<S>,
pub fn with_subscriber(self, inner: S) -> Layered<Self, S, S>
[src]
Auto Trait Implementations
impl<H> RefUnwindSafe for CallTreeCollector<H> where
H: RefUnwindSafe,
[src]
H: RefUnwindSafe,
impl<H> Send for CallTreeCollector<H> where
H: Send,
[src]
H: Send,
impl<H> Sync for CallTreeCollector<H> where
H: Sync,
[src]
H: Sync,
impl<H> Unpin for CallTreeCollector<H> where
H: Unpin,
[src]
H: Unpin,
impl<H> UnwindSafe for CallTreeCollector<H> where
H: UnwindSafe,
[src]
H: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,