Class: Lapsoss::RailsErrorSubscriber
- Inherits:
-
Object
- Object
- Lapsoss::RailsErrorSubscriber
- Defined in:
- lib/lapsoss/rails_error_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#report(error, handled:, severity:, context:, source: nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/lapsoss/rails_error_subscriber.rb', line 5 def report(error, handled:, severity:, context:, source: nil) # Skip certain framework errors return if skip_error?(error, source) level = map_severity(severity) Lapsoss.capture_exception( error, level: level, tags: { handled: handled, source: source || "rails" }, context: context ) end |