Skip to main content

EventSanitizeFn

Type Alias EventSanitizeFn 

Source
pub type EventSanitizeFn = Arc<dyn Fn(Arc<Event>, EventSanitizeFields) -> Pin<Box<dyn Future<Output = Result<EventSanitizeFields>> + Send>> + Send + Sync>;
Expand description

Sanitize mutable observability fields on a fully constructed event.

The callback receives the current event as immutable context and the fields it may replace. Later callbacks observe fields returned by earlier entries.

Aliased Typeยง

pub struct EventSanitizeFn { /* private fields */ }