lib/opentelemetry/instrumentation/rails/railtie.rb in opentelemetry-instrumentation-rails-0.16.0 vs lib/opentelemetry/instrumentation/rails/railtie.rb in opentelemetry-instrumentation-rails-0.17.0
- old
+ new
@@ -13,10 +13,10 @@
class Railtie < ::Rails::Railtie
config.before_initialize do |app|
OpenTelemetry::Instrumentation::Rack::Instrumentation.instance.install({})
app.middleware.insert_after(
- ActionDispatch::RequestId,
+ 0,
OpenTelemetry::Instrumentation::Rack::Middlewares::TracerMiddleware
)
end
end
end