diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-01 18:15:28 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-01 18:15:28 +0100 |
commit | ee318727774dbec75d5506a4b4749fc4236206d5 (patch) | |
tree | b067a3ad0713a0707b20648b1441e9e3c7a583ec | |
parent | c661df356156240deeef7c2734670ba5f2b4b04b (diff) | |
download | gitlab-ce-ee318727774dbec75d5506a4b4749fc4236206d5.tar.gz |
Execute metrics initializer earlieretag-notes-polling
This makes sure that Gitlab::Metrics::RackMiddleware is added before
Gitlab::EtagCaching::Middleware.
-rw-r--r-- | config/initializers/8_metrics.rb (renamed from config/initializers/metrics.rb) | 0 | ||||
-rw-r--r-- | doc/development/instrumentation.md | 2 | ||||
-rw-r--r-- | spec/initializers/8_metrics_spec.rb (renamed from spec/initializers/metrics_spec.rb) | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/8_metrics.rb index a1517e6afc8..a1517e6afc8 100644 --- a/config/initializers/metrics.rb +++ b/config/initializers/8_metrics.rb diff --git a/doc/development/instrumentation.md b/doc/development/instrumentation.md index b8669964c84..a14c0752366 100644 --- a/doc/development/instrumentation.md +++ b/doc/development/instrumentation.md @@ -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 diff --git a/spec/initializers/metrics_spec.rb b/spec/initializers/8_metrics_spec.rb index bb595162370..570754621f3 100644 --- a/spec/initializers/metrics_spec.rb +++ b/spec/initializers/8_metrics_spec.rb @@ -1,5 +1,5 @@ require 'spec_helper' -require_relative '../../config/initializers/metrics' +require_relative '../../config/initializers/8_metrics' describe 'instrument_classes', lib: true do let(:config) { double(:config) } |