Sha256: b226b8ca8c1b892849eeb7b5ed242194f0d31980fbaf4220d22c5ec22a7cb043

Contents?: true

Size: 465 Bytes

Versions: 17

Compression:

Stored size: 465 Bytes

Contents

module QueueClassicPlus
  class Empty
    def self.method_missing(*)
      yield if block_given?
    end
  end

  class Metrics
    def self.timing(*args, &block)
      provider.timing(*args, &block)
    end

    def self.increment(*args)
      provider.increment(*args)
    end

    def self.measure(*args)
      provider.measure(*args)
    end

    def self.provider
      if defined?(Librato)
        Librato
      else
        Empty
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
queue_classic_plus-4.0.0.alpha21 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha20 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha19 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha18 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha17 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha16 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha15 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha14 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha13 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha12 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha11 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha10 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha9 lib/queue_classic_plus/metrics.rb
queue_classic_plus-4.0.0.alpha8 lib/queue_classic_plus/metrics.rb
queue_classic_plus-1.1.0 lib/queue_classic_plus/metrics.rb
queue_classic_plus-1.0.1 lib/queue_classic_plus/metrics.rb
queue_classic_plus-1.0.0 lib/queue_classic_plus/metrics.rb