Skip to content

Move match_count and suppressed_match_count to rule-level metrics#342

Draft
vinckama wants to merge 1 commit intomainfrom
vincent.roy/3571
Draft

Move match_count and suppressed_match_count to rule-level metrics#342
vinckama wants to merge 1 commit intomainfrom
vincent.roy/3571

Conversation

@vinckama
Copy link
Copy Markdown
Contributor

@vinckama vinckama commented Apr 3, 2026

scanning.match_count and scanning.suppressed_match_count are now emitted
with combined scanner+rule labels (via RuleMetrics) instead of scanner-only
labels (via ScannerMetrics)

CompiledRule gains two default no-op trait methods (on_match,
on_suppressed_match) that RegexCompiledRule overrides to increment the
per-rule counters. Three new tests verify both basic emission and correct
label propagation.

scanning.match_count and scanning.suppressed_match_count are now emitted
with combined scanner+rule labels (via RuleMetrics) instead of scanner-only
labels (via ScannerMetrics)

CompiledRule gains two default no-op trait methods (on_match,
on_suppressed_match) that RegexCompiledRule overrides to increment the
per-rule counters. Three new tests verify both basic emission and correct
label propagation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant