Expand description
This module only provides compatibility with tracing-subscriber
. The methods here are just
copies that only use different types for the Subscriber
and SubscriberBuilder
.
Structs§
- Layer
- A
Layer
that logs JSON formatted representations oftracing
events. - Subscriber
- A type that can be used to create a
Subscriber
which collects tracing spans and events and emits them in JSON. - Subscriber
Builder - Configures and constructs
Subscriber
s.
Functions§
- fmt
- Returns a new
SubscriberBuilder
for configuring a json formatting subscriber. - init
- Install a global tracing subscriber that listens for events and
filters based on the value of the
RUST_LOG
environment variable. - layer
- Returns a new json formatting layer that can be composed with other layers to construct a
Subscriber
. - try_
init - Install a global tracing subscriber that listens for events and
filters based on the value of the
RUST_LOG
environment variable, if one is not already set.