Struct tracing_bunyan_formatter::JsonStorage [−][src]
pub struct JsonStorage<'a> { /* fields omitted */ }
Expand description
JsonStorage
will collect information about a span when it’s created (new_span
handler)
or when new records are attached to it (on_record
handler) and store it in its extensions
for future retrieval from other layers interested in formatting or further enrichment.
We are re-implementing (well, copy-pasting, apart from using an HashMap instead of a BTreeMap)
JsonVisitor
from tracing-subscriber
given that we can’t access/insert/iterate over
the underlying BTreeMap using its public API.
For spans, we also store the duration of each span with the elapsed_milliseconds
key using
the on_exit
/on_enter
handlers.
Implementations
Trait Implementations
Get a new visitor, with an empty bag of key-value pairs.
Taken verbatim from tracing-subscriber
Visit a signed 64-bit integer value.
Visit an unsigned 64-bit integer value.
Visit a boolean value.
Visit a string value.
Visit a value implementing fmt::Debug
.
Visit a double-precision floating point value.
Records a type implementing Error
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for JsonStorage<'a>
impl<'a> Send for JsonStorage<'a>
impl<'a> Sync for JsonStorage<'a>
impl<'a> Unpin for JsonStorage<'a>
impl<'a> UnwindSafe for JsonStorage<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more