Module: Lograge::Datadog::Error::Tracking
- Defined in:
- lib/lograge/datadog/error/tracking.rb,
lib/lograge/datadog/error/tracking/version.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.call(event) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/lograge/datadog/error/tracking.rb', line 13 def self.call(event) if event.payload[:exception].present? { error: { kind: event.payload[:exception][0], message: event.payload[:exception][1], stack: event.payload[:exception_object].backtrace } } else {} end end |