lib/appsignal/transaction.rb in appsignal-0.12.beta.22 vs lib/appsignal/transaction.rb in appsignal-0.12.beta.23

- old
+ new

@@ -14,11 +14,10 @@ HTTP_CACHE_CONTROL HTTP_CONNECTION HTTP_USER_AGENT HTTP_FROM HTTP_NEGOTIATE HTTP_PRAGMA HTTP_REFERER HTTP_X_FORWARDED_FOR HTTP_CLIENT_IP).freeze class << self def create(request_id, env) - Appsignal.logger.debug("Creating transaction: #{request_id}") Thread.current[:appsignal_transaction] = Appsignal::Transaction.new(request_id, env) end def current Thread.current[:appsignal_transaction] @@ -139,11 +138,10 @@ def set_background_queue_start return unless root_event_payload queue_start = root_event_payload[:queue_start] return unless queue_start - Appsignal.logger.debug("Setting background queue start: #{queue_start}") @queue_start = (queue_start.to_f * 1000.0).to_i end def sanitized_params return unless root_event_payload @@ -152,10 +150,9 @@ def set_http_queue_start return unless env env_var = env['HTTP_X_QUEUE_START'] || env['HTTP_X_REQUEST_START'] if env_var - Appsignal.logger.debug("Setting http queue start: #{env_var}") cleaned_value = env_var.tr('^0-9', '') unless cleaned_value.empty? value = cleaned_value.to_i [1_000_000.0, 1_000.0].each do |factor| @queue_start = (value / factor).to_i