pub fn set_default<C>(collector: C) -> DefaultGuard
Available on crate feature
std
only.Expand description
Sets the collector as the default for the current thread for the duration of
the lifetime of the returned DefaultGuard
.
The default collector is used when creating a new Span
or
Event
.