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 49f7460 commit 6adfe61Copy full SHA for 6adfe61
sentry_sdk/scope.py
@@ -366,7 +366,7 @@ def get_global_scope(cls) -> "Scope":
366
367
return _global_scope
368
369
- def _set_global_attributes(self) -> None:
+ def set_global_attributes(self) -> None:
370
from sentry_sdk.client import SDK_INFO
371
372
self.set_attribute("sentry.sdk.name", SDK_INFO["name"])
@@ -493,7 +493,7 @@ def set_client(
493
# We need a client to set the initial global attributes on the global
494
# scope since they mostly come from client options, so populate them
495
# as soon as a client is set
496
- sentry_sdk.get_global_scope()._set_global_attributes()
+ sentry_sdk.get_global_scope().set_global_attributes()
497
else:
498
self.client = NonRecordingClient()
499
0 commit comments