Skip to content

Commit 8cb05b4

Browse files
committed
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.
1 parent 104db8c commit 8cb05b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/_metrics_batcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
class MetricsBatcher:
15-
MAX_METRICS_BEFORE_FLUSH = 100
15+
MAX_METRICS_BEFORE_FLUSH = 1000
1616
FLUSH_WAIT_TIME = 5.0
1717

1818
def __init__(

0 commit comments

Comments
 (0)