tokio_trace_core::callsite

Function rebuild_interest_cache

Source
pub fn rebuild_interest_cache()
Expand description

Clear and reregister interest on every Callsite

This function is intended for runtime reconfiguration of filters on traces when the filter recalculation is much less frequent than trace events are. The alternative is to have the Subscriber that supports runtime reconfiguration of filters always return Interest::sometimes() so that enabled is evaluated for every event.