lib/opentelemetry/instrumentation/rack/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-rack-0.14.0 vs lib/opentelemetry/instrumentation/rack/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-rack-0.15.0
- old
+ new
@@ -47,10 +47,10 @@
EMPTY_HASH = {}.freeze
def initialize(app)
@app = app
- @untraced_endpoints = config[:untraced_endpoints].is_a?(Array) ? config[:untraced_endpoints] : []
+ @untraced_endpoints = config[:untraced_endpoints]
end
def call(env) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
if untraced_request?(env)
OpenTelemetry::Common::Utilities.untraced do