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
Layerthat logs JSON formatted representations oftracingevents. - Subscriber
- A type that can be used to create a
Subscriberwhich collects tracing spans and events and emits them in JSON. - Subscriber
Builder - Configures and constructs
Subscribers.
Functions§
- fmt
- Returns a new
SubscriberBuilderfor configuring a json formatting subscriber. - init
- Install a global tracing subscriber that listens for events and
filters based on the value of the
RUST_LOGenvironment 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_LOGenvironment variable, if one is not already set.