Module tracing_subscriber::reload
source · Expand description
Wrapper for a Layer
to allow it to be dynamically reloaded.
This module provides a Layer
type which wraps another type implementing
the Layer
trait, allowing the wrapped type to be replaced with another
instance of that type at runtime.
This can be used in cases where a subset of Subscriber
functionality
should be dynamically reconfigured, such as when filtering directives may
change at runtime. Note that this layer introduces a (relatively small)
amount of overhead, and should thus only be used as needed.