Commit ee318727 authored by Adam Niedzielski's avatar Adam Niedzielski

Execute metrics initializer earlier

This makes sure that Gitlab::Metrics::RackMiddleware is added before
Gitlab::EtagCaching::Middleware.
parent c661df35
......@@ -35,7 +35,7 @@ Using this method is in general preferred over directly calling the various
instrumentation methods.
Method instrumentation should be added in the initializer
`config/initializers/metrics.rb`.
`config/initializers/8_metrics.rb`.
### Examples
......
require 'spec_helper'
require_relative '../../config/initializers/metrics'
require_relative '../../config/initializers/8_metrics'
describe 'instrument_classes', lib: true do
let(:config) { double(:config) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment