feat(tornado): Gate user info behind data_collection config#6872
Open
ericapisani wants to merge 3 commits into
Open
feat(tornado): Gate user info behind data_collection config#6872ericapisani wants to merge 3 commits into
ericapisani wants to merge 3 commits into
Conversation
ericapisani
marked this pull request as ready for review
July 23, 2026 15:05
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4305b7d. Configure here.
Contributor
Codecov Results 📊✅ 96588 passed | ⏭️ 6410 skipped | Total: 102998 | Pass Rate: 93.78% | Execution Time: 341m 7s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 90.48%. Project has 2514 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.67% 89.68% +0.01%
==========================================
Files 193 193 —
Lines 24321 24359 +38
Branches 8572 8612 +40
==========================================
+ Hits 21809 21845 +36
- Misses 2512 2514 +2
- Partials 1397 1398 +1Generated by Codecov Action |
Apply the data_collection.user_info setting to the Tornado integration's user info collection, giving it precedence over the legacy send_default_pii boolean when explicitly configured. This covers the user.ip_address scope attribute applied to all spans, the client.address span attribute, and the is_authenticated user flag on error events, mirroring the behavior already shipped for Flask, WSGI, ASGI, Django, and Sanic. The user IP span test is reparametrized with the shared DATA_COLLECTION_USER_INFO_CASES matrix from tests/integrations/utils.py, and new tests cover the previously untested client.address span attribute and the data_collection gating of the is_authenticated flag. Refs PY-2583
ericapisani
force-pushed
the
py-2583-tornado
branch
from
July 23, 2026 18:15
7ea6c4f to
9038fe5
Compare
ericapisani
force-pushed
the
py-2583-sanic-user-info
branch
from
July 23, 2026 18:15
4a557fc to
057caa4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Apply the data_collection.user_info setting to the Tornado integration's user info collection, giving it precedence over the legacy send_default_pii boolean when explicitly configured. This covers the user.ip_address scope attribute applied to all spans, the client.address span attribute, and the is_authenticated user flag on error events, mirroring the behavior already shipped for Flask, WSGI, ASGI, Django, and Sanic.
The user IP span test is reparametrized with the shared DATA_COLLECTION_USER_INFO_CASES matrix from tests/integrations/utils.py, and new tests cover the previously untested client.address span attribute and the data_collection gating of the is_authenticated flag.
Refs PY-2583
Refs #6746