pub fn validate_event_timestamps(
    event: &mut Annotated<Event>,
    config: &EventValidationConfig
) -> ProcessingResult
Expand description

Validates the timestamp values of an event, after performing minimal timestamp normalization.

A minimal normalization is performed on an event’s timestamps before checking for validity, like clock drift correction. This normalization depends on the given configuration.

Validation is checked individually on timestamps. For transaction events, validate_transaction should run after this method to perform additional transaction-specific checks.

The returned ProcessingResult indicates whether the event is invalid and thus should be dropped.

Normalization changes should not be performed during validation, unless strictly required. Consider adding placing the normalization in crate::event::normalize_event.