Skip to content

Commit 79f893a

Browse files
feat(cloud_resource_context): Support span streaming
1 parent 213eb58 commit 79f893a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sentry_sdk/integrations/cloud_resource_context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import urllib3
55

6+
import sentry_sdk
67
from sentry_sdk.api import set_context
78
from sentry_sdk.integrations import Integration
89
from sentry_sdk.utils import logger
@@ -262,6 +263,8 @@ def setup_once() -> None:
262263
context = CloudResourceContextIntegration._get_cloud_resource_context()
263264
if context != {}:
264265
set_context(CONTEXT_TYPE, context)
266+
for k, v in context.items():
267+
sentry_sdk.get_isolation_scope().set_attribute(k, v)
265268

266269

267270
# Map with the currently supported cloud providers

0 commit comments

Comments
 (0)