Function cargo_scout_audit::utils::telemetry::get_subscriber
source · pub fn get_subscriber<Sink>(
name: String,
env_filter: String,
sink: Sink,
) -> impl Subscriber + Send + Sync
Expand description
Compose multiple layers into a tracing
’s subscriber.
§Implementation notes
We are using impl Subscriber
as return type to avoid having
to spell out the actual type, which is indeed quite complex.
We need to explicitely call out that the returned subscriber is
Send
and Sync
to make it possible to pass it to init_subscriber
later on.