Skip to content

Commit 57d5dc5

Browse files
committed
Add other metric to track coldness
1 parent a3edfaa commit 57d5dc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sentry/relay/config/metric_extraction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def _get_bulk_cached_query(project: Project) -> tuple[dict[int, dict[str, bool]]
220220
sentry_sdk.set_tag(f"on_demand_metrics.query_cache.{i}", chunk_result is None)
221221
cache_result[i] = chunk_result or {}
222222
sentry_sdk.set_extra("cold_cache_chunks", cold_cache_chunks)
223+
metrics.incr("on_demand_metrics.query_cache_cold_keys", amount=len(cold_cache_chunks))
223224
return cache_result, cold_cache_chunks
224225

225226

0 commit comments

Comments
 (0)