layer

Function layer 

Source
pub fn layer<S>() -> impl Layer<S>
where S: Subscriber + for<'a> LookupSpan<'a>,
Expand description

Returns a Layer that subscribes to all spans and events using a JSON formatter. This is used to configure the JSON formatter.