Skip to content

ref(integrations): route HTTP header filtering through data collection config - #6788

Merged
ericapisani merged 26 commits into
masterfrom
py-2584-update-wsgi-filter-headers
Jul 22, 2026
Merged

ref(integrations): route HTTP header filtering through data collection config#6788
ericapisani merged 26 commits into
masterfrom
py-2584-update-wsgi-filter-headers

Make changes to adjust to the data collection option being within the…

a590c8e
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: code-review completed Jul 9, 2026 in 0s

1 issue

code-review: Found 1 issue (1 low)

Low

Test branches on parametrize ID string instead of `expected is None`, risking silent test failure - `tests/integrations/aiohttp/test_aiohttp.py:1409`

In test_sensitive_header_passthrough_with_pii_span_streaming, use if expected is None instead of if request.node.callspec.id == "data_collection_off_does_not_add_headers". If the parametrize ID is ever renamed, the intended branch is silently skipped and the else branch runs expected["authorization"] on None, raising a TypeError. Keying on the semantically-meaningful expected value is more robust.


⏱ 10m 58s · 1.4M in / 63.5k out · $2.13