diff --git a/lib/api/appsignal_api.rb b/lib/api/appsignal_api.rb index 9ec01aa6b952..2496992973eb 100644 --- a/lib/api/appsignal_api.rb +++ b/lib/api/appsignal_api.rb @@ -30,8 +30,8 @@ module AppsignalAPI def self.included(base) base.class_eval do if OpenProject::Appsignal.enabled? - require "appsignal/integrations/grape" - insert_before Grape::Middleware::Error, Appsignal::Grape::Middleware + require "appsignal/rack/grape_middleware" + insert_before Grape::Middleware::Error, Appsignal::Rack::GrapeMiddleware end end end