EnrichmentClosure typedef

EnrichmentClosure = RawEvent Function(RawEvent event)

A per-call closure that can modify an event during processing.

It runs after enrichment-phase plugins (i.e. once platform context has been stamped on the event) and before destination plugins. Its return value is used verbatim; any merge semantics belong inside the closure.

Implementation

typedef EnrichmentClosure = RawEvent Function(RawEvent event);