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 1ad226a commit 976c31eCopy full SHA for 976c31e
src/sentry/remote_subscriptions/consumers/result_consumer.py
@@ -285,9 +285,11 @@ def process_group(self, items: list[T]):
285
"""
286
Process a group of related messages serially.
287
288
- for item in items:
289
- with sentry_sdk.start_span(
290
- name=f"monitors.{self.identifier}.result_consumer",
291
- op="result_processor.process",
292
- ):
293
- self.result_processor(item)
+ isolation_scope = sentry_sdk.get_isolation_scope().fork()
+ with sentry_sdk.scope.use_isolation_scope(isolation_scope):
+ for item in items:
+ with sentry_sdk.start_span(
+ name=f"monitors.{self.identifier}.result_consumer",
+ op="result_processor.process",
294
+ ):
295
+ self.result_processor(item)
0 commit comments