lib/semantic_logger/formatters/signalfx.rb in semantic_logger-4.15.0 vs lib/semantic_logger/formatters/signalfx.rb in semantic_logger-4.16.0

- old
+ new

@@ -80,11 +80,14 @@ def call(log, logger) self.hash = {} self.log = log self.logger = logger - metric; time; value; format_dimensions + metric + time + value + format_dimensions # gauge, counter, or cumulative_counter data = {} if log.duration data[:gauge] = [hash] @@ -111,10 +114,13 @@ data = {} logs.each do |log| self.hash = {} self.log = log - metric; time; value; format_dimensions + metric + time + value + format_dimensions if log.duration gauges = (data[:gauge] ||= []) add_gauge(gauges, hash)