Skip to content

Commit e3508d3

Browse files
committed
fix: Remove sampling for old model pickle stats
Forgot to remove sampling in the previous pr.
1 parent 4630cf8 commit e3508d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/runner/initializer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def __model_unpickle_compat(model_id, attrs=None, factory=None):
403403
from django import VERSION
404404

405405
if attrs is not None or factory is not None:
406-
metrics.incr("django.pickle.loaded_19_pickle.__model_unpickle_compat")
406+
metrics.incr("django.pickle.loaded_19_pickle.__model_unpickle_compat", sample_rate=1)
407407

408408
if VERSION[:2] in [(1, 10), (1, 11)]:
409409
return model_unpickle(model_id)

0 commit comments

Comments
 (0)