Struct tracing_bunyan_formatter::JsonStorageLayer[][src]

pub struct 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]

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_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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.