lib/opentelemetry/instrumentation/rack/util/queue_time.rb in opentelemetry-instrumentation-rack-0.21.0 vs lib/opentelemetry/instrumentation/rack/util/queue_time.rb in opentelemetry-instrumentation-rack-0.21.1

- 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/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + def get_request_start(env, now = nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity 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"