diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-12-20 23:07:26 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-12-21 00:53:45 +0800 |
commit | 77b8c2c1768dc7e70a7b5f2bbfdf2b97d78dbfe9 (patch) | |
tree | cee03e051312b66ef524dfe0d4da10c520687133 /config | |
parent | 24c9e1e2a85651cd5e446c1f848dad64f3981493 (diff) | |
download | gitlab-ce-77b8c2c1768dc7e70a7b5f2bbfdf2b97d78dbfe9.tar.gz |
Always load the metrics the last
Because this could potentially load a model and we shouldn't
load models before all the patches we have in places.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/zz_metrics.rb (renamed from config/initializers/8_metrics.rb) | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/8_metrics.rb b/config/initializers/zz_metrics.rb index 468f80939d7..462e8c811a6 100644 --- a/config/initializers/8_metrics.rb +++ b/config/initializers/zz_metrics.rb @@ -1,3 +1,6 @@ +# This file was prefixed with zz_ because we want to load it the last! +# See: https://gitlab.com/gitlab-org/gitlab-ce/issues/55611 + # Autoload all classes that we want to instrument, and instrument the methods we # need. This takes the Gitlab::Metrics::Instrumentation module as an argument so # that we can stub it for testing, as it is only called when metrics are |