Class: Upperkut::Middlewares::Datadog

Inherits:
Object
  • Object
show all
Defined in:
lib/upperkut/middlewares/datadog.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, _items) ⇒ Object



4
5
6
7
8
# File 'lib/upperkut/middlewares/datadog.rb', line 4

def call(worker, _items)
  ::Datadog.tracer.trace(worker.name) do
    yield
  end
end