Sha256: 0a4d08fbc5a5adbf9d035f8bf4804efbd6fa2ea4b0e2fd9262596417f50824d2

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 Bytes

Contents

require "nunes/adapter"

module Nunes
  module Adapters
    # Internal: Adapter that aliases timing to gauge. One of the supported
    # places to send instrumentation data is instrumentalapp.com. Their agent
    # uses gauge under the hood for timing information. This adapter is used to
    # adapter their gauge interface to the timing one used internally in the
    # gem. This should never need to be used directly by a user of the gem.
    class TimingAliased < ::Nunes::Adapter
      # Internal: Adapter timing to gauge.
      def timing(metric, duration)
        @client.gauge metric, duration
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nunes-0.1.0 lib/nunes/adapters/timing_aliased.rb