Class: Pliny::ErrorReporters::Sentry
- Inherits:
-
Object
- Object
- Pliny::ErrorReporters::Sentry
- Defined in:
- lib/pliny/error_reporters/sentry.rb
Instance Method Summary collapse
Instance Method Details
#notify(exception, context:, rack_env:) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/pliny/error_reporters/sentry.rb', line 6 def notify(exception, context:, rack_env:) ::Sentry.with_scope do |scope| configure_scope(scope, context: context, rack_env: rack_env) ::Sentry.capture_exception(exception) end rescue Exception => e # rubocop:disable Lint/RescueException ::Sentry.capture_exception(e) raise end |