Skip to content

Commit ee3ca80

Browse files
ref(aws-lambda): Stop at MAX_PRODUCER_LINKS with >=
1 parent 364aca5 commit ee3ca80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sentry_sdk/integrations/aws_lambda/_handler.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _get_producer_links(aws_event: "Any", trace_id: str) -> "list[SpanLink]":
102102
# a batch send gives many messages the same producer span.
103103
if link not in links:
104104
links.append(link)
105-
if len(links) == MAX_PRODUCER_LINKS:
105+
if len(links) >= MAX_PRODUCER_LINKS:
106106
break
107107

108108
return links

0 commit comments

Comments
 (0)