Module: MicroserviceDSL::Instrument

Defined in:
lib/microservice_dsl/instrument.rb

Class Method Summary collapse

Class Method Details

.instrument(name, title = nil, body = nil, &block) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/microservice_dsl/instrument.rb', line 3

def self.instrument(name, title = nil, body = nil, &block)
  if defined?(Appsignal)
    Appsignal.instrument(name, title, body) do
      block.call
    end
  else
    block.call
  end
end