Skip to content

feat(flask): Gate user identity behind data_collection config#6859

Open
ericapisani wants to merge 1 commit into
py-2586-gate_user_data_wsgifrom
py-2586-flask
Open

feat(flask): Gate user identity behind data_collection config#6859
ericapisani wants to merge 1 commit into
py-2586-gate_user_data_wsgifrom
py-2586-flask

Conversation

@ericapisani

@ericapisani ericapisani commented Jul 21, 2026

Copy link
Copy Markdown
Member

Apply data_collection.user_info filtering to Flask's login-user
identity capture, mirroring the WSGI/ASGI changes: gate user
population on request start, event user data, and span user.*
attributes behind data_collection, falling back to
send_default_pii when data_collection is not configured.

Add parametrized end-to-end tests for Flask covering
data_collection precedence over send_default_pii for both error
events and span attributes.

Ref PY-2586
Ref #6746

Apply data_collection.user_info filtering to Flask's login-user
identity capture, mirroring the WSGI/ASGI changes: gate user
population on request start, event user data, and span user.*
attributes behind data_collection, falling back to
send_default_pii when data_collection is not configured.

Add parametrized end-to-end tests for Flask covering
data_collection precedence over send_default_pii for both error
events and span attributes.

Ref PY-2586
Ref #6746
@ericapisani
ericapisani requested a review from a team as a code owner July 21, 2026 22:27
@linear-code

linear-code Bot commented Jul 21, 2026

Copy link
Copy Markdown

PY-2586

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

94903 passed | ⏭️ 6338 skipped | Total: 101241 | Pass Rate: 93.74% | Execution Time: 335m 28s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +2740
Passed Tests 📈 +2706
Failed Tests
Skipped Tests 📈 +34

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2483 uncovered lines.
✅ Project coverage is 89.75%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.70%    89.75%    +0.05%
==========================================
  Files          193       193         —
  Lines        24030     24223      +193
  Branches      8348      8528      +180
==========================================
+ Hits         21555     21740      +185
- Misses        2475      2483        +8
- Partials      1384      1380        -4

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