Skip to content

Commit 2c01c64

Browse files
committed
chore(weekly-report): add cache hit metric (#117346)
Adds cache hit metric to weekly report cache More details on caching found in this [merged PR](#116739)
1 parent ef140b9 commit 2c01c64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/sentry/tasks/summaries/weekly_report_cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ def read_project_metrics(
5252
for i, project_id in enumerate(project_ids):
5353
raw = results[i]
5454
if raw is None:
55-
metrics.incr("weekly_report.cache.miss")
55+
metrics.incr("weekly_report.cache_read", tags={"result": "miss"})
5656
else:
57+
metrics.incr("weekly_report.cache_read", tags={"result": "hit"})
5758
result_map[project_id] = json.loads(raw)
5859

5960
return result_map

0 commit comments

Comments
 (0)