Skip to content

Add sds_excluded_namespace tag to multipass excluded match metric#346

Merged
vinckama merged 1 commit intomainfrom
vincent.roy/3585
Apr 9, 2026
Merged

Add sds_excluded_namespace tag to multipass excluded match metric#346
vinckama merged 1 commit intomainfrom
vincent.roy/3585

Conversation

@vinckama
Copy link
Copy Markdown
Contributor

@vinckama vinckama commented Apr 9, 2026

What does this PR do?

When debug observability is enabled, the false_positive.multipass.excluded_match metric now includes a second tag sds_excluded_namespace alongside the existing sds_namespace tag. This provides visibility into which excluded scope path contributed the match that caused the exclusion, making it easier to debug false positive behavior in multipass scanning.

To track which excluded path contributed each match string, excluded_matches was changed from AHashSet<String> to AHashMap<String, Path<'static>>, and TruePositiveSearch now carries the scan_path so it is available at insertion time.

Builds on PR #344 which introduced the sds_namespace tag and enable_debug_observability feature flag.

SDS-2471


Part of the debug observability improvements for the Sensitive Data Scanner.

When debug observability is enabled, the false_positive.multipass.excluded_match
metric now also includes a sds_excluded_namespace tag identifying which excluded
path contributed the match that caused the false positive.

The excluded_matches set is changed from AHashSet<String> to
AHashMap<String, Path<'static>> so the contributing path is tracked from
insertion through to metric emission.
@vinckama vinckama marked this pull request as ready for review April 9, 2026 08:28
@vinckama vinckama requested a review from a team as a code owner April 9, 2026 08:28
@vinckama vinckama merged commit 670ac48 into main Apr 9, 2026
4 checks passed
@vinckama vinckama deleted the vincent.roy/3585 branch April 9, 2026 08:59
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.

2 participants