We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a614fc6 commit 24be3d3Copy full SHA for 24be3d3
sentry_sdk/integrations/wsgi.py
@@ -264,6 +264,10 @@ def __iter__(self):
264
try:
265
chunk = next(iterator)
266
except StopIteration:
267
+ # Close the Sentry transaction (it could be that response.close() is never called by the framework)
268
+ # This is done here to make sure the Transaction stays
269
+ # open until all streaming responses are done.
270
+ finish_running_transaction(self._current_scope)
271
break
272
except BaseException:
273
reraise(*_capture_exception())
0 commit comments