Skip to content

Commit 906158f

Browse files
committed
Need to manually flush the client if span streaming is enabled by the AWS lambda integration is not
1 parent 65232d2 commit 906158f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sentry_sdk/integrations/chalice.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def wrapped_view_function(**function_args: "Any") -> "Any":
132132
mechanism={"type": "chalice", "handled": False},
133133
)
134134
sentry_sdk.capture_event(sentry_event, hint=hint)
135+
if not segment:
136+
client.flush()
135137
raise
136138
else:
137139
scope.set_transaction_name(

0 commit comments

Comments
 (0)