Skip to content

Fix sentry-rails' backtrace_cleanup_callback injection#1510

Merged
st0012 merged 3 commits intomasterfrom
fix-sentry-rails-backtrace_cleanup_callback-injection
Jul 23, 2021
Merged

Fix sentry-rails' backtrace_cleanup_callback injection#1510
st0012 merged 3 commits intomasterfrom
fix-sentry-rails-backtrace_cleanup_callback-injection

Conversation

@st0012
Copy link
Copy Markdown
Contributor

@st0012 st0012 commented Jul 22, 2021

As spotted in #1076 (comment), sentry-rails always overrides the backtrace_cleanup_callback provided by the user. It should respect the existing value instead.

st0012 added 2 commits July 22, 2021 21:44
`sentry-rails` should check the presence `backtrace_cleanup_callback`
before assigning the default one.

The problem was spotted in #1076 (comment).
@st0012 st0012 added this to the 4.7.0 milestone Jul 22, 2021
@st0012 st0012 self-assigned this Jul 22, 2021
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 22, 2021

Codecov Report

Merging #1510 (60cdc6e) into master (bae8c5b) will increase coverage by 0.56%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1510      +/-   ##
==========================================
+ Coverage   98.22%   98.78%   +0.56%     
==========================================
  Files         218      123      -95     
  Lines       10562     6723    -3839     
==========================================
- Hits        10374     6641    -3733     
+ Misses        188       82     -106     
Impacted Files Coverage Δ
sentry-rails/lib/sentry/rails/railtie.rb 100.00% <100.00%> (ø)
...rails/spec/sentry/rails/controller_methods_spec.rb 100.00% <100.00%> (ø)
sentry-rails/spec/sentry/rails_spec.rb 100.00% <100.00%> (ø)
...ven/spec/raven/processors/removestacktrace_spec.rb
sentry-raven/lib/raven/breadcrumbs.rb
sentry-raven/spec/support/test_rails_app/app.rb
...y-raven/lib/raven/integrations/rails/active_job.rb
...raven/spec/raven/breadcrumbs/sentry_logger_spec.rb
sentry-raven/spec/raven/processors/cookies_spec.rb
sentry-raven/spec/raven/configuration_spec.rb
... and 88 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bae8c5b...60cdc6e. Read the comment docs.

@st0012 st0012 merged commit 157f958 into master Jul 23, 2021
@st0012 st0012 deleted the fix-sentry-rails-backtrace_cleanup_callback-injection branch July 23, 2021 04:21
@st0012 st0012 modified the milestones: 4.7.0, 4.6.2 Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants