summaryrefslogtreecommitdiff
path: root/lib/gitlab/metrics/methods.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/metrics/methods.rb')
-rw-r--r--lib/gitlab/metrics/methods.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/methods.rb b/lib/gitlab/metrics/methods.rb
index dc9a7ed1312..0aad865085b 100644
--- a/lib/gitlab/metrics/methods.rb
+++ b/lib/gitlab/metrics/methods.rb
@@ -56,7 +56,8 @@ module Gitlab
end
def disabled_by_feature(options)
- options.with_feature && !::Feature.enabled?(options.with_feature, type: :ops)
+ options.with_feature && !::Feature.enabled?(options.with_feature,
+ type: :undefined, default_enabled_if_undefined: false)
end
def build_metric!(type, name, options)