Skip to main content

sanitize_agent_event

Function sanitize_agent_event 

Source
pub fn sanitize_agent_event(
    provider: &dyn SecurityProvider,
    event: &AgentEvent,
) -> AgentEvent
Expand description

Sanitize every data-bearing field of an agent event while preserving the identifiers and discriminants used to correlate the event stream.

Runtime boundaries call this immediately before events are observed, persisted, or exposed to an SDK. Implementations of SecurityProvider should therefore make SecurityProvider::sanitize_output idempotent.