Sha256: ace255f2753a294b41b30e555edaf23e54bba202c7b73f3f8dc770524b474e73
Contents?: true
Size: 808 Bytes
Versions: 16
Compression:
Stored size: 808 Bytes
Contents
# encoding: utf-8 require "moped/instrumentable/log" require "moped/instrumentable/noop" module Moped module Instrumentable # The name of the topic of operations for Moped. # # @since 2.0.0 TOPIC = "query.moped" # @!attribute instrumenter # @return [ Object ] The instrumenter attr_reader :instrumenter # Instrument and execute the provided block. # # @example Instrument and execute. # instrument("moped.noop") do # node.connect # end # # @param [ String ] name The name of the operation. # @param [ Hash ] payload The payload. # # @return [ Object ] The result of the yield. # # @since 2.0.0 def instrument(name, payload = {}, &block) instrumenter.instrument(name, payload, &block) end end end
Version data entries
16 entries across 16 versions & 2 rubygems