Class: Dionysus::Utils::KarafkaDatadogListener

Inherits:
Object
  • Object
show all
Defined in:
lib/dionysus/utils/karafka_datadog_listener.rb

Class Method Summary collapse

Class Method Details

.on_error_occurred(event) ⇒ Object



5
6
7
8
# File 'lib/dionysus/utils/karafka_datadog_listener.rb', line 5

def on_error_occurred(event)
  span = tracer.active_span
  span&.set_error(event[:error])
end