We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 213eb58 commit 79f893aCopy full SHA for 79f893a
1 file changed
sentry_sdk/integrations/cloud_resource_context.py
@@ -3,6 +3,7 @@
3
4
import urllib3
5
6
+import sentry_sdk
7
from sentry_sdk.api import set_context
8
from sentry_sdk.integrations import Integration
9
from sentry_sdk.utils import logger
@@ -262,6 +263,8 @@ def setup_once() -> None:
262
263
context = CloudResourceContextIntegration._get_cloud_resource_context()
264
if context != {}:
265
set_context(CONTEXT_TYPE, context)
266
+ for k, v in context.items():
267
+ sentry_sdk.get_isolation_scope().set_attribute(k, v)
268
269
270
# Map with the currently supported cloud providers
0 commit comments