lib/coverband-service-client.rb in coverband-service-client-0.0.12.rc.2 vs lib/coverband-service-client.rb in coverband-service-client-0.0.12.rc.3
- old
+ new
@@ -54,9 +54,10 @@
def initialize_stats
return unless ENV['COVERBAND_STATS_KEY']
return unless defined?(Dogapi::Client)
@stats = Dogapi::Client.new(ENV['COVERBAND_STATS_KEY'])
+ @app_name = defined?(Rails) ? Rails.application.class.module_parent.to_s : "unknown"
end
def report_timing(timing)
return unless @stats