lib/opentelemetry/instrumentation/rails/railtie.rb in opentelemetry-instrumentation-rails-0.18.0 vs lib/opentelemetry/instrumentation/rails/railtie.rb in opentelemetry-instrumentation-rails-0.18.1
- old
+ new
@@ -12,10 +12,10 @@
# the Rails application through its initialization hooks
class Railtie < ::Rails::Railtie
config.before_initialize do |app|
OpenTelemetry::Instrumentation::Rack::Instrumentation.instance.install({})
- app.middleware.insert_after(
+ app.middleware.insert_before(
0,
OpenTelemetry::Instrumentation::Rack::Middlewares::TracerMiddleware
)
end
end