From 8cb05b4c77d1845650771876fef2854404d39494 Mon Sep 17 00:00:00 2001 From: Kev Date: Sun, 26 Oct 2025 17:58:35 -0400 Subject: [PATCH] fix(tracemetrics): Bump metric buffer to 1k dquote> We've been noticing some discards from clients for likely buffer reason (primarily on python, though fixing it on both sdks). Metrics were initially set to 100 to match logs but the size limit for a metric is ~1000x less (~1-2kb at the moment) so the memory pressure should be fine. --- sentry_sdk/_metrics_batcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry_sdk/_metrics_batcher.py b/sentry_sdk/_metrics_batcher.py index fd9a5d732b..27d27f2c72 100644 --- a/sentry_sdk/_metrics_batcher.py +++ b/sentry_sdk/_metrics_batcher.py @@ -12,7 +12,7 @@ class MetricsBatcher: - MAX_METRICS_BEFORE_FLUSH = 100 + MAX_METRICS_BEFORE_FLUSH = 1000 FLUSH_WAIT_TIME = 5.0 def __init__(