/usr/lib/ruby/vendor_ruby/raemon/instrumentation.rb is in ruby-raemon 0.3.0+git.2012.05.18.b78eaae57c-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | module Raemon
# Provides a safe interface to instrument Raemon
module Instrumentation
def instrument(name, payload={}, &block)
if Raemon.config.instrumentor.respond_to? :instrument
full_name = "#{Raemon.config.instrumentor_name}.#{name}"
Raemon.config.instrumentor.send :instrument, full_name, payload, &block
end
end
end
end
|