pub fn json_error_layer<S>() -> ErrorLayer<S, JsonFields>where
S: Subscriber + for<'span> LookupSpan<'span>,Expand description
Construct a tracing_error::ErrorLayer configured to format span fields
as JSON.
Equivalent to ErrorLayer::new(JsonFields::default()) but doesn’t require
the caller to depend on tracing-subscriber directly.