Skip to content
代码片段 群组 项目
提交 2ba4bee2 编辑于 作者: Niko Belokolodov's avatar Niko Belokolodov 提交者: Bojan Marjanovic
浏览文件

Use MetricDefinition.all in HLLRedisCounter.load_events call

上级 842d70ed
No related branches found
No related tags found
无相关合并请求
......@@ -113,7 +113,9 @@ def keys_for_aggregation(events:, start_date:, end_date:, context: '')
def load_events(wildcard)
if Feature.enabled?(:use_metric_definitions_for_events_list)
events = Gitlab::Usage::MetricDefinition.not_removed.values.map do |d|
events = Gitlab::Usage::MetricDefinition.all.map do |d|
next unless d.available?
d.attributes[:options] && d.attributes[:options][:events]
end.flatten.compact.uniq
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册