[−][src]Struct tracing_bunyan_formatter::JsonStorageLayer
This layer is only concerned with information storage, it does not do any formatting or provide any output.
It's purpose is to store the fields associated to spans in an easy-to-consume format for downstream layers concerned with emitting a formatted representation of spans or events.
Trait Implementations
impl Clone for JsonStorageLayer
[src]
fn clone(&self) -> JsonStorageLayer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for JsonStorageLayer
[src]
impl<S: Subscriber + for<'a> LookupSpan<'a>> Layer<S> for JsonStorageLayer
[src]
fn new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
[src]
Span creation. This is the only occasion we have to store the fields attached to the span given that they might have been borrowed from the surrounding context.
fn on_record(&self, span: &Id, values: &Record<'_>, ctx: Context<'_, S>)
[src]
fn on_enter(&self, span: &Id, ctx: Context<'_, S>)
[src]
When we enter a span for the first time save the timestamp in its extensions.
fn on_close(&self, span: Id, ctx: Context<'_, S>)
[src]
When we close a span, register how long it took in milliseconds.
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
[src]
fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool
[src]
fn on_follows_from(&self, _span: &Id, _follows: &Id, _ctx: Context<'_, S>)
[src]
fn on_event(&self, _event: &Event<'_>, _ctx: Context<'_, S>)
[src]
fn on_exit(&self, _id: &Id, _ctx: Context<'_, S>)
[src]
fn on_id_change(&self, _old: &Id, _new: &Id, _ctx: Context<'_, S>)
[src]
fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
[src]
L: Layer<S>,
fn with_subscriber(self, inner: S) -> Layered<Self, S, S>
[src]
Auto Trait Implementations
impl RefUnwindSafe for JsonStorageLayer
impl Send for JsonStorageLayer
impl Sync for JsonStorageLayer
impl Unpin for JsonStorageLayer
impl UnwindSafe for JsonStorageLayer
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]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,