lib/opentelemetry/instrumentation/rack/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-rack-0.22.1 vs lib/opentelemetry/instrumentation/rack/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-rack-0.23.0
- old
+ new
@@ -4,18 +4,16 @@
#
# SPDX-License-Identifier: Apache-2.0
require 'opentelemetry/trace/status'
-require_relative '../util/queue_time'
-
module OpenTelemetry
module Instrumentation
module Rack
module Middlewares
# TracerMiddleware propagates context and instruments Rack requests
# by way of its middleware system
- class TracerMiddleware # rubocop:disable Metrics/ClassLength
+ class TracerMiddleware
class << self
def allowed_rack_request_headers
@allowed_rack_request_headers ||= Array(config[:allowed_request_headers]).each_with_object({}) do |header, memo|
key = header.to_s.upcase.gsub(/[-\s]/, '_')
case key