lib/opentelemetry/instrumentation/sinatra/extensions/tracer_extension.rb in opentelemetry-instrumentation-sinatra-0.22.0 vs lib/opentelemetry/instrumentation/sinatra/extensions/tracer_extension.rb in opentelemetry-instrumentation-sinatra-0.23.0
- old
+ new
@@ -26,11 +26,11 @@
) do
super
end
end
end
- app.use OpenTelemetry::Instrumentation::Rack::Middlewares::TracerMiddleware
- app.use Middlewares::TracerMiddleware
+ app.use(*OpenTelemetry::Instrumentation::Rack::Instrumentation.instance.middleware_args)
+ app.use(Middlewares::TracerMiddleware)
end
end
end
end
end