lib/opentelemetry/instrumentation/rack/util/queue_time.rb in opentelemetry-instrumentation-rack-0.23.3 vs lib/opentelemetry/instrumentation/rack/util/queue_time.rb in opentelemetry-instrumentation-rack-0.23.4
- old
+ new
@@ -14,10 +14,10 @@
QUEUE_START = 'HTTP_X_QUEUE_START'
MINIMUM_ACCEPTABLE_TIME_VALUE = 1_000_000_000
module_function
- def get_request_start(env, now = nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
+ def get_request_start(env, now = nil)
header = env[REQUEST_START] || env[QUEUE_START]
return unless header
# nginx header is seconds in the format "t=1512379167.574"
# apache header is microseconds in the format "t=1570633834463123"