module RedCross
Application tracker send your metrics to influxdb using udp protocol Usage: RedCross.application_track(event: 'user.registration', properties: { referrer: 'facebook' } )
Constants
- VERSION
Public Class Methods
flush()
click to toggle source
# File lib/red_cross.rb, line 24 def flush Configuration.tracker.flush end
group(attrs, topic = '')
click to toggle source
# File lib/red_cross.rb, line 28 def group(attrs, topic = '') Configuration.tracker.group(attrs) end
identify(attrs, topic = '')
click to toggle source
# File lib/red_cross.rb, line 20 def identify(attrs, topic = '') Configuration.tracker.identify(attrs) end
method_missing(m, *args, &block)
click to toggle source
Calls superclass method
# File lib/red_cross.rb, line 32 def method_missing(m, *args, &block) match = /(.*?)_track/.match(m.to_s) tracker = match.captures.first.to_sym unless match.nil? super unless Configuration.trackers.keys.include? tracker Configuration.trackers[tracker].send(:track, *args) end
track(attrs, topic = '')
click to toggle source
# File lib/red_cross.rb, line 16 def track(attrs, topic = '') Configuration.tracker.track(attrs) end