Method: Sentry::Integrable#capture_exception
- Defined in:
- lib/sentry/integrable.rb
#capture_exception(exception, **options, &block) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/sentry/integrable.rb', line 14 def capture_exception(exception, **, &block) [:hint] ||= {} [:hint][:integration] = integration_name # within an integration, we usually intercept uncaught exceptions so we set handled to false. [:hint][:mechanism] ||= Sentry::Mechanism.new(type: integration_name, handled: false) Sentry.capture_exception(exception, **, &block) end |