Skip to content

feat(integrations): Gate user info behind data_collection config - #6876

Merged
ericapisani merged 23 commits into
masterfrom
py-2583-misc
Jul 28, 2026
Merged

feat(integrations): Gate user info behind data_collection config#6876
ericapisani merged 23 commits into
masterfrom
py-2583-misc

test(aws_lambda): Place identity at top level of test event payloads

d28ee71
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden completed Jul 23, 2026 in 0s

2 issues

Medium

AWS Lambda body handling skipped when data_collection is enabled - `sentry_sdk/integrations/aws_lambda.py:441-456`

When has_data_collection_enabled is true, the elif should_send_default_pii() branch is skipped, so request body is neither collected nor redacted.

AWS Lambda user-info tests use non-standard event structure - `tests/integrations/aws_lambda/test_aws_lambda.py:430-432`

The test payload changed from standard requestContext.identity to a top-level identity field that doesn't match real AWS API Gateway events, causing tests to verify behavior with a fictional event structure instead of production reality.

4 skills analyzed
Skill Findings Duration Cost
security-review 0 14.4s $0.06
code-review 2 15m 17s $1.35
find-bugs 0 37m 9s $1.93
skill-scanner 0 23m 8s $0.08

⏱ 75m 49s · 12.2M in / 263.6k out · $3.42