Sha256: 18ce39666392f312ff3baf24178ec80d2a521a9108531dd41da17731e32f12f8

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

require 'liquid/metrics/reporter'

module Metrics
  class TrackerReporter < Reporter

    def initialize(tracker)
      super
      @tracker = tracker
    end

    def report_gauge(name, gauge)
      @tracker.event(super)
    end

    def report_counter(name, counter)
      @tracker.event(super)
    end

    def report_histogram(name, histogram)
      @tracker.event(super)
    end

    def report_meter(name, meter)
      @tracker.event(super)
    end

    def report_timer(name, timer)
      @tracker.event(super)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
liquid-ext-3.5.3 lib/liquid/metrics/tracker_reporter.rb
liquid-ext-3.5.2 lib/liquid/metrics/tracker_reporter.rb