module UltraMarathon::Instrumentation

Public Instance Methods

instrumentations() click to toggle source

The default instrumentation store for the included class @return [UltraMarathon::Instrumentation::Store]

# File lib/ultra_marathon/instrumentation.rb, line 28
def instrumentations
  @instrumentations ||= UltraMarathon::Instrumentation::Store.new([], prefix: instrumentation_prefix)
end

Private Instance Methods

instrument(*args, &block) click to toggle source

@return [Object] @see UltraMarathon::Instrumentation::Store#instrument

# File lib/ultra_marathon/instrumentation.rb, line 44
def instrument(*args, &block)
  instrumentations.instrument(*args, &block)
end
instrumentation_prefix() click to toggle source

@return [String] the prefix for the default instrumentation store passed

to {.instrumentation_prefix}
# File lib/ultra_marathon/instrumentation.rb, line 38
def instrumentation_prefix
  self.class.instrumentation_prefix.try_call(self)
end