Module: Sentry::Rails::ControllerMethods

Defined in:
lib/sentry/rails/controller_methods.rb

Instance Method Summary collapse

Instance Method Details

#capture_exception(exception, options = {}) ⇒ Object



12
13
14
15
16
# File 'lib/sentry/rails/controller_methods.rb', line 12

def capture_exception(exception, options = {})
  with_request_scope do
    Sentry::Rails.capture_exception(exception, **options)
  end
end

#capture_message(message, options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/sentry/rails/controller_methods.rb', line 6

def capture_message(message, options = {})
  with_request_scope do
    Sentry::Rails.capture_message(message, **options)
  end
end