Skip to content

Commit ab151d5

Browse files
authored
fix(spans): Increase spans per segment limit to 1001 (#92395)
Relay currently enforces a limit of 1000 spans per segment, but that does not count the transaction span itself. For this reason, we receive a high number of errors for segments exceeding the maximum span count. To silence this error for expected cases, we increase the limit to 1001 for now. Soon this limit will be further increased.
1 parent fde12f7 commit ab151d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/spans/buffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __init__(
146146
span_buffer_root_timeout_secs: int = 10,
147147
segment_page_size: int = 100,
148148
max_segment_bytes: int = 10 * 1024 * 1024, # 10 MiB
149-
max_segment_spans: int = 1000,
149+
max_segment_spans: int = 1001,
150150
redis_ttl: int = 3600,
151151
):
152152
self.assigned_shards = list(assigned_shards)

0 commit comments

Comments
 (0)