Tracing::Reload
Inherits Tracing::Layer < Reference < Object
Wraps a Layer, allowing it to be replaced at runtime via a Handle.
Ported from upstream tracing_subscriber::reload. All Layer hooks
delegate to the current inner layer (guarded by a mutex), so swapping the
inner layer through the handle immediately changes behavior.
Divergence from upstream: upstream additionally rebuilds the global callsite
interest cache on reload (callsite::rebuild_interest_cache). The Crystal
port leaves global interest management to the dispatcher — Dispatch .with_default is fiber-local and does not register a global dispatcher, so
Reload only swaps the inner layer. Upstream's weak-reference / lock-
poisoning error surface (is_dropped, is_poisoned) has no Crystal
equivalent and is omitted.
Constructors
Instance methods
Returns true if this layer would enable the given metadata.
Returns an additional Handle that can reload this layer. Mirrors
upstream reload::Layer::handle.
Called immediately before a span is closed and removed from the registry.
Called when a new span is created.
Called when fields are recorded on a span.
Called when a follows-from relationship is recorded.
Called when a callsite is registered.