Sha256: c481a3d63bef2afbd42757593fc65f41c2847ed00691891fa4a33acd97f492c5
Contents?: true
Size: 487 Bytes
Versions: 5
Compression:
Stored size: 487 Bytes
Contents
require "nunes/subscriber" module Nunes module Subscribers class Nunes < ::Nunes::Subscriber # Private Pattern = /\.nunes\Z/ # Private: The namespace for events to subscribe to. def self.pattern Pattern end def instrument_method_time(start, ending, transaction_id, payload) runtime = ((ending - start) * 1_000).round metric = payload[:metric] timing "#{metric}", runtime if metric end end end end
Version data entries
5 entries across 5 versions & 1 rubygems