diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-16 15:47:07 +0100 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-29 15:13:03 +0100 |
commit | 66c1acba0bada535cedcdc4d8e62ff966b4d0374 (patch) | |
tree | 03b6f1e0e1d747038152514278c55404dcd2e846 /lib/gitlab/metrics/method_call.rb | |
parent | 53f818fdac35d1c0810faa81a8dde20bbf8a3697 (diff) | |
download | gitlab-ce-66c1acba0bada535cedcdc4d8e62ff966b4d0374.tar.gz |
Fix code after refactoring
Diffstat (limited to 'lib/gitlab/metrics/method_call.rb')
-rw-r--r-- | lib/gitlab/metrics/method_call.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/gitlab/metrics/method_call.rb b/lib/gitlab/metrics/method_call.rb index 5cd5c388fb6..7cb153237d4 100644 --- a/lib/gitlab/metrics/method_call.rb +++ b/lib/gitlab/metrics/method_call.rb @@ -8,10 +8,11 @@ module Gitlab BASE_LABELS = { module: nil, method: nil }.freeze attr_reader :real_time, :cpu_time, :call_count, :labels - histogram :gitlab_method_call_duration_seconds, 'Method calls real duration', - base_labels: Transaction::BASE_LABELS.merge(BASE_LABELS), - buckets: [0.01, 0.05, 0.1, 0.5, 1], - with_feature: :prometheus_metrics_method_instrumentation + define_histogram :gitlab_method_call_duration_seconds, + docstring: 'Method calls real duration', + base_labels: Transaction::BASE_LABELS.merge(BASE_LABELS), + buckets: [0.01, 0.05, 0.1, 0.5, 1], + with_feature: :prometheus_metrics_method_instrumentation # name - The full name of the method (including namespace) such as # `User#sign_in`. |