Class: Yabeda::Datadog::ResponseHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/yabeda/datadog/response_handler.rb

Overview

Handle response from dogapi

Class Method Summary collapse

Class Method Details

.call(metric) ⇒ Object



8
9
10
11
12
13
# File 'lib/yabeda/datadog/response_handler.rb', line 8

def call(metric)
  Logging.instance.debug("sending #{metric.name} metric")
  response = yield
  Logging.instance.debug("response on #{metric.name}: #{handle(response)}")
  response
end