Skip to content

Commit fe31660

Browse files
authored
fix(tracemetrics): Bump metric buffer size to 1k (#5031)
We've been noticing some discards from clients for likely buffer reason. Metrics were initially set to 100 to match logs but the size limit for a metric in relay is ~1000x less (~1-2kb at the moment) so the memory pressure should be fine (it'd cap in the single digit megabyte range).
1 parent 6e06a07 commit fe31660

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)