diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-17 02:49:23 +0100 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-29 15:13:03 +0100 |
commit | 0325c23732b94bd26647d695ebda38b7077e3924 (patch) | |
tree | 403904481e17c2da4c8bf2445632864dc085f083 /lib | |
parent | 91a991367e7d5dfc1c3488ade3812635bd43531c (diff) | |
download | gitlab-ce-0325c23732b94bd26647d695ebda38b7077e3924.tar.gz |
Fix tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/metrics/influx_db.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/metrics/influx_db.rb b/lib/gitlab/metrics/influx_db.rb index b57d111b853..e051e292bb1 100644 --- a/lib/gitlab/metrics/influx_db.rb +++ b/lib/gitlab/metrics/influx_db.rb @@ -1,7 +1,7 @@ module Gitlab module Metrics module InfluxDb - include Gitlab::Metrics::Concern + include Gitlab::Metrics::Concern::ClassMethods include Gitlab::CurrentSettings extend self @@ -106,7 +106,7 @@ module Gitlab real_time = (real_stop - real_start) cpu_time = cpu_stop - cpu_start - real_duration_seconds = self.class.fetch_histogram("gitlab_#{name}_real_duration_seconds".to_sym) do + real_duration_seconds = fetch_histogram("gitlab_#{name}_real_duration_seconds".to_sym) do docstring "Measure #{name}" base_labels Transaction::BASE_LABELS buckets EXECUTION_MEASUREMENT_BUCKETS @@ -114,7 +114,7 @@ module Gitlab real_duration_seconds.observe(trans.labels, real_time) - cpu_duration_seconds = self.class.fetch_histogram("gitlab_#{name}_cpu_duration_seconds".to_sym) do + cpu_duration_seconds = fetch_histogram("gitlab_#{name}_cpu_duration_seconds".to_sym) do docstring "Measure #{name}" base_labels Transaction::BASE_LABELS buckets EXECUTION_MEASUREMENT_BUCKETS |