Sitelet https://github.com/getsentry/sentry-python/pull/7254
Skip to content

fix(gcp): Gate request body collection on data_collection experiment - #7254

Open
ericapisani wants to merge 1 commit into
py-2419-request-body-starlettefrom
py-2419-request-body-gcp
Open

fix(gcp): Gate request body collection on data_collection experiment#7254
ericapisani wants to merge 1 commit into
py-2419-request-body-starlettefrom
py-2419-request-body-gcp

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Attach request.data based on the data_collection experiment's http_bodies["incoming_request"] setting when configured, falling back to should_send_default_pii() otherwise.

Refs PY-2419
Refs #6283

Attach request.data based on the data_collection experiment's
http_bodies["incoming_request"] setting when configured, falling
back to should_send_default_pii() otherwise.

Refs PY-2419
Refs #6283
@ericapisani
ericapisani requested a review from a team as a code owner August 25, 2026 20:37
@linear-code

linear-code Bot commented Aug 25, 2026

Copy link
Copy Markdown

PY-2419

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

118005 passed | ⏭️ 6732 skipped | Total: 124737 | Pass Rate: 94.6% | Execution Time: 415m 30s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +336
Passed Tests 📈 +338
Failed Tests 📉 -2
Skipped Tests

➖ Removed Tests (2)

View removed tests
  • test_continuous_profiler_auto_start_and_stop_sampled[non-experiment-gevent]
    • File: tests.profiler.test_continuous_profiler
  • test_continuous_profiler_auto_start_and_stop_sampled_span_streaming[experiment-gevent]
    • File: tests.profiler.test_continuous_profiler

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 2488 uncovered lines.
✅ Project coverage is 90.23%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/gcp.py 0.00% ⚠️ 6 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.22%    90.23%    +0.01%
==========================================
  Files          193       193         —
  Lines        25435     25461       +26
  Branches      9346      9368       +22
==========================================
+ Hits         22947     22973       +26
- Misses        2488      2488         —
- Partials      1434      1433        -1

Generated by Codecov Action

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