Skip to content

fix(integrations): Gate REMOTE_ADDR on data_collection.user_info - #7298

Merged
ericapisani merged 1 commit into
masterfrom
py-2751-gate-remote-addr
Aug 31, 2026
Merged

fix(integrations): Gate REMOTE_ADDR on data_collection.user_info#7298
ericapisani merged 1 commit into
masterfrom
py-2751-gate-remote-addr

Conversation

@ericapisani

Copy link
Copy Markdown
Member

REMOTE_ADDR was previously set unconditionally in the request env for aiohttp, sanic, and tornado. Now it respects the data_collection.user_info experiment when data collection is enabled, falling back to the legacy unconditional behaviour otherwise.

Fixes PY-2751
Fixes #7297

REMOTE_ADDR was previously set unconditionally in the request env for
aiohttp, sanic, and tornado. Now it respects the data_collection.user_info
experiment when data collection is enabled, falling back to the legacy
unconditional behaviour otherwise.

Fixes PY-2751
Fixes #7297
@ericapisani
ericapisani requested a review from a team as a code owner August 28, 2026 19:09
@linear-code

linear-code Bot commented Aug 28, 2026

Copy link
Copy Markdown

PY-2751

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

2172 passed | ⏭️ 239 skipped | Total: 2411 | Pass Rate: 90.09% | Execution Time: 3m 49s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -123411
Passed Tests 📉 -116888
Failed Tests
Skipped Tests 📉 -6523

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 16093 uncovered lines.
❌ Project coverage is 37.15%. Comparing base (base) to head (head).

Files with missing lines (3)
File Patch % Lines
sentry_sdk/integrations/aiohttp.py 0.00% ⚠️ 2 Missing
sentry_sdk/integrations/sanic.py 0.00% ⚠️ 2 Missing
sentry_sdk/integrations/tornado.py 0.00% ⚠️ 2 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    90.30%    37.15%   -53.15%
==========================================
  Files          193       193         —
  Lines        25601     25604        +3
  Branches      9436      9442        +6
==========================================
+ Hits         23116      9511    -13605
- Misses        2485     16093    +13608
- Partials      1435       516      -919

Generated by Codecov Action

@ericapisani
ericapisani merged commit e1175de into master Aug 31, 2026
270 of 272 checks passed
@ericapisani
ericapisani deleted the py-2751-gate-remote-addr branch August 31, 2026 12:35
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.

Address missing user_info data collection gates on REMOTE_ADDR property

2 participants