3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/rollbar/plugins/rails/error_subscriber.rb', line 3
def report(error, handled:, severity:, context:, source: nil)
return unless handled || Rollbar.configuration.capture_uncaught != false
= context.is_a?(Hash) ? context.deep_dup : {}
[:custom_data_method_context] = source
[:controller] = [:controller].class.name if [:controller]&.respond_to?(:class)
[:job] = [:job].class.name if [:job]&.respond_to?(:class)
[:is_uncaught] = !handled
[:use_exception_level_filters] = !handled
Rollbar.log(severity, error, )
end
|