Class: Metrics::TrackerReporter

Inherits:
Reporter
  • Object
show all
Defined in:
lib/liquid/metrics/tracker_reporter.rb

Instance Attribute Summary

Attributes inherited from Reporter

#duration_unit, #filter, #rate_unit

Instance Method Summary collapse

Methods inherited from Reporter

#convert_duration, #convert_rate, #report_counters, #report_gauges, #report_histograms, #report_meters, #report_timers, #run, #start, #stop

Constructor Details

#initialize(tracker) ⇒ TrackerReporter

Returns a new instance of TrackerReporter.



6
7
8
9
# File 'lib/liquid/metrics/tracker_reporter.rb', line 6

def initialize(tracker)
  super
  @tracker = tracker
end

Instance Method Details

#report_counter(name, counter) ⇒ Object



15
16
17
# File 'lib/liquid/metrics/tracker_reporter.rb', line 15

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

#report_gauge(name, gauge) ⇒ Object



11
12
13
# File 'lib/liquid/metrics/tracker_reporter.rb', line 11

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

#report_histogram(name, histogram) ⇒ Object



19
20
21
# File 'lib/liquid/metrics/tracker_reporter.rb', line 19

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

#report_meter(name, meter) ⇒ Object



23
24
25
# File 'lib/liquid/metrics/tracker_reporter.rb', line 23

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

#report_timer(name, timer) ⇒ Object



27
28
29
# File 'lib/liquid/metrics/tracker_reporter.rb', line 27

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