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 Clone for JsonStorageLayer
[src]fn clone(&self) -> JsonStorageLayer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Subscriber + for<'a> LookupSpan<'a>> Layer<S> 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.
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_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_exit(&self, _id: &Id, _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 RefUnwindSafe for JsonStorageLayer
impl RefUnwindSafe for JsonStorageLayer
impl Send for JsonStorageLayer
impl Send for JsonStorageLayer
impl Sync for JsonStorageLayer
impl Sync for JsonStorageLayer
impl Unpin for JsonStorageLayer
impl Unpin for JsonStorageLayer
impl UnwindSafe for JsonStorageLayer
impl UnwindSafe for JsonStorageLayer
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]