lib/quilt_rails/performance/client.rb in quilt_rails-1.9.0 vs lib/quilt_rails/performance/client.rb in quilt_rails-1.9.1

- old
+ new

@@ -23,14 +23,12 @@ end client.send(:process_report!) end - def distribution(metric_name, value, tag_hash = {}) - tags = tag_hash.map { |key, hash_value| "#{key}:#{hash_value}" } - + def distribution(metric_name, value, tags = {}) @distribution_callback.call(metric_name, value, tags) - StatsD.distribution(metric_name, value, tags) unless Rails.env.dev? + StatsD.distribution(metric_name, value, tags: tags) unless Rails.env.dev? end def on_navigation(&block) @navigation_callback = block end