Skip to main content

load_contexts_by_label

Function load_contexts_by_label 

Source
pub fn load_contexts_by_label(
    inputs: &[(String, &Path)],
    labels: &[NextAppLabel],
    window_secs: u64,
) -> Result<BTreeMap<(String, i64, i64), StructuredContext>>
Expand description

Build a map from (scenario, window_start_ms, window_end_ms) to a StructuredContext.

For each input trace, we parse its events, sanitize them, then for every label of that scenario we create an independent WindowAggregator covering exactly the label’s time range. This matches the sliding-window labels even though WindowAggregator itself is tumbling-window by design.