Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix send_default_pii handling in rails controller spans #2443

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

sl0thentr0py
Copy link
Member

@sl0thentr0py sl0thentr0py commented Oct 22, 2024

The change in #1973 accidentally exposed params always in the controller action span. This change now respects both Rails.config.filter_parameters and Sentry.configuration.send_default_pii together to decide what to send.

fixes #2438

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.18%. Comparing base (957c8d6) to head (a566efb).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2443      +/-   ##
==========================================
- Coverage   98.34%   98.18%   -0.17%     
==========================================
  Files         126      126              
  Lines        4705     4726      +21     
==========================================
+ Hits         4627     4640      +13     
- Misses         78       86       +8     
Components Coverage Δ
sentry-ruby 98.51% <ø> (-0.14%) ⬇️
sentry-rails 97.20% <100.00%> (-0.75%) ⬇️
sentry-sidekiq 97.47% <ø> (+1.51%) ⬆️
sentry-resque 92.85% <ø> (+0.21%) ⬆️
sentry-delayed_job 95.65% <ø> (ø)
sentry-opentelemetry 99.31% <ø> (-0.69%) ⬇️
Files with missing lines Coverage Δ
...y-rails/lib/sentry/rails/controller_transaction.rb 95.83% <100.00%> (+0.18%) ⬆️

... and 17 files with indirect coverage changes

The change in #1793 accidentally exposed params always in the controller action span.
This change now respects both `Rails.config.filter_parameters` and `Sentry.coniguration.send_default_pii`
together to decide what to send.
@sl0thentr0py sl0thentr0py merged commit 9bba2ef into master Oct 22, 2024
140 of 141 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/fix-rails-pii-params branch October 22, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants