Skip to main content

Module grouping

Module grouping 

Source

Functions§

densest_window
Densest sliding window over entries pre-sorted by started_offset_ms. Returns (count, left_idx, right_idx) (inclusive) of the most populous window no wider than window_ms. Returns (0, 0, 0) for an empty slice.
group_by_fingerprint
Group entries by duplicate fingerprint. Each group’s entries are sorted by (started_offset_ms, index). Groups are returned sorted by descending size, then fingerprint, for determinism.
group_has_retry
True if a time-ordered fingerprint group contains an attempt that follows a failed earlier attempt (i.e. the group exhibits retry behavior).
is_retry_trigger
A request whose status indicates a transient failure worth retrying.
retry_entry_ids
IDs of entries classified as retries across all fingerprint groups.