Commit 162790d4 authored by Alper Akgun's avatar Alper Akgun

Merge branch 'deprecate-note-usagedata' into 'master'

Add note to deprecate usage_data.rb in CE and EE

See merge request gitlab-org/gitlab!75492
parents 14198dc7 0f15ce8c
# frozen_string_literal: true # frozen_string_literal: true
# NOTE:
# Implementing metrics direct in `usage_data.rb` is deprecated,
# please add new instrumentation class and use add_metric method.
# For more information, see https://docs.gitlab.com/ee/development/service_ping/metrics_instrumentation.html
module EE module EE
module Gitlab module Gitlab
module UsageData module UsageData
......
...@@ -10,6 +10,12 @@ ...@@ -10,6 +10,12 @@
# alt_usage_data { Gitlab::VERSION } # alt_usage_data { Gitlab::VERSION }
# redis_usage_data(Gitlab::UsageDataCounters::WikiPageCounter) # redis_usage_data(Gitlab::UsageDataCounters::WikiPageCounter)
# redis_usage_data { ::Gitlab::UsageCounters::PodLogs.usage_totals[:total] } # redis_usage_data { ::Gitlab::UsageCounters::PodLogs.usage_totals[:total] }
# NOTE:
# Implementing metrics direct in `usage_data.rb` is deprecated,
# please add new instrumentation class and use add_metric method.
# For more information, see https://docs.gitlab.com/ee/development/service_ping/metrics_instrumentation.html
module Gitlab module Gitlab
class UsageData class UsageData
DEPRECATED_VALUE = -1000 DEPRECATED_VALUE = -1000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment