Skip to content

fix(starlette): Gate request body collection on data_collection experiment - #7253

Merged
ericapisani merged 1 commit into
py-2419-request-body-fastapifrom
py-2419-request-body-starlette
Aug 26, 2026
Merged

fix(starlette): Gate request body collection on data_collection experiment#7253
ericapisani merged 1 commit into
py-2419-request-body-fastapifrom
py-2419-request-body-starlette

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Only attach request body data to events and spans when "incoming_request" is present in the data_collection.http_bodies experiment option (or when the experiment is unset, preserving default behavior).

Refs PY-2419
Refs #6283

…iment

Only attach request body data to events and spans when
"incoming_request" is present in the data_collection.http_bodies
experiment option (or when the experiment is unset, preserving
default behavior).

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

linear-code Bot commented Aug 25, 2026

Copy link
Copy Markdown

PY-2419

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

117998 passed | ⏭️ 6732 skipped | Total: 124730 | Pass Rate: 94.6% | Execution Time: 418m 1s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +329
Passed Tests 📈 +331
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 100.00%. Project has 2486 uncovered lines.
✅ Project coverage is 90.24%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.22%    90.24%    +0.02%
==========================================
  Files          193       193         —
  Lines        25435     25459       +24
  Branches      9346      9366       +20
==========================================
+ Hits         22947     22973       +26
- Misses        2488      2486        -2
- Partials      1434      1433        -1

Generated by Codecov Action

@ericapisani
ericapisani merged commit d2bd83f into master Aug 26, 2026
263 of 265 checks passed
@ericapisani
ericapisani deleted the py-2419-request-body-starlette branch August 26, 2026 16:19
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