getsentry / sentry-ruby

Sentry SDK for Ruby
https://sentry.io/for/ruby
MIT License
927 stars 493 forks source link

Add mechanism interface and default to handled false in integrations #2280

Closed sl0thentr0py closed 5 months ago

sl0thentr0py commented 5 months ago

closes #1743

codecov[bot] commented 5 months ago

Codecov Report

Merging #2280 (9130bcc) into master (ffffce9) will decrease coverage by 0.04%. Report is 1 commits behind head on master. The diff coverage is 96.29%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2280 +/- ## ========================================== - Coverage 97.61% 97.57% -0.04% ========================================== Files 112 113 +1 Lines 4154 4170 +16 ========================================== + Hits 4055 4069 +14 - Misses 99 101 +2 ``` | [Components](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | Coverage Δ | | |---|---|---| | [sentry-ruby](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `98.24% <96.29%> (-0.06%)` | :arrow_down: | | [sentry-rails](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `95.22% <ø> (ø)` | | | [sentry-sidekiq](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `94.70% <ø> (ø)` | | | [sentry-resque](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `90.76% <ø> (ø)` | | | [sentry-delayed_job](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `95.60% <ø> (ø)` | | | [sentry-opentelemetry](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `100.00% <ø> (ø)` | | | [Files](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | Coverage Δ | | |---|---|---| | [sentry-ruby/lib/sentry/client.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Fclient.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9jbGllbnQucmI=) | `100.00% <100.00%> (ø)` | | | [sentry-ruby/lib/sentry/error\_event.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Ferror_event.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9lcnJvcl9ldmVudC5yYg==) | `100.00% <100.00%> (ø)` | | | [sentry-ruby/lib/sentry/integrable.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Fintegrable.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9pbnRlZ3JhYmxlLnJi) | `100.00% <100.00%> (ø)` | | | [sentry-ruby/lib/sentry/interface.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Finterface.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9pbnRlcmZhY2UucmI=) | `100.00% <100.00%> (ø)` | | | [sentry-ruby/lib/sentry/interfaces/exception.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Finterfaces%2Fexception.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9pbnRlcmZhY2VzL2V4Y2VwdGlvbi5yYg==) | `100.00% <100.00%> (ø)` | | | [sentry-ruby/lib/sentry/interfaces/mechanism.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Finterfaces%2Fmechanism.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9pbnRlcmZhY2VzL21lY2hhbmlzbS5yYg==) | `100.00% <100.00%> (ø)` | | | [...try-ruby/lib/sentry/interfaces/single\_exception.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Finterfaces%2Fsingle_exception.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9pbnRlcmZhY2VzL3NpbmdsZV9leGNlcHRpb24ucmI=) | `100.00% <100.00%> (ø)` | | | [sentry-ruby/lib/sentry/rack/capture\_exceptions.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Frack%2Fcapture_exceptions.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9yYWNrL2NhcHR1cmVfZXhjZXB0aW9ucy5yYg==) | `95.55% <100.00%> (+0.31%)` | :arrow_up: | | [sentry-ruby/lib/sentry/rake.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280?src=pr&el=tree&filepath=sentry-ruby%2Flib%2Fsentry%2Frake.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJ1YnkvbGliL3NlbnRyeS9yYWtlLnJi) | `60.00% <0.00%> (-4.29%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2280/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry)