diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-07-15 18:46:39 +0300 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-07-26 21:06:09 +0300 |
commit | 345cd22f21e4e5a6e340c35e50b43105ee107570 (patch) | |
tree | d1f3916535c9bca94cb9c8fe16559332dcbf762e /config/initializers/request_profiler.rb | |
parent | 0c799be6b6fc0166473c82039ebf662a0558ed8f (diff) |
Profile requests when a header is passed
Diffstat (limited to 'config/initializers/request_profiler.rb')
-rw-r--r-- | config/initializers/request_profiler.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/request_profiler.rb b/config/initializers/request_profiler.rb new file mode 100644 index 00000000000..fb5a7b8372e --- /dev/null +++ b/config/initializers/request_profiler.rb @@ -0,0 +1,3 @@ +Rails.application.configure do |config| + config.middleware.use(Gitlab::RequestProfiler::Middleware) +end |