lib/semantic_logger/metric/signalfx.rb in semantic_logger-4.6.1 vs lib/semantic_logger/metric/signalfx.rb in semantic_logger-4.7.0

- old
+ new

@@ -8,11 +8,11 @@ module SemanticLogger module Metric class Signalfx < SemanticLogger::Appender::Http attr_reader :full_url - END_POINT = 'v2/datapoint'.freeze + END_POINT = "v2/datapoint".freeze # Create SignalFx metrics appender. # # Parameters: # token: [String] @@ -73,19 +73,19 @@ # logger.measure_info(metric: 'Common/User/authorize') do # sleep 1 # end def initialize(token:, dimensions: nil, - url: 'https://ingest.signalfx.com', + url: "https://ingest.signalfx.com", formatter: nil, **args, &block) formatter ||= SemanticLogger::Formatters::Signalfx.new(token: token, dimensions: dimensions) super(url: url, formatter: formatter, **args, &block) - @header['X-SF-TOKEN'] = token + @header["X-SF-TOKEN"] = token @full_url = "#{url}/#{END_POINT}" end def log(log) message = formatter.call(log, self)