Skip to content

Commit 0f68f48

Browse files
authored
fix: Send correct packages and integrations (#50)
* fix: Send correct packages and integrations * fix: Add sentry-sdk as package too * fix: Use packages correctly * build: stylefixes
1 parent 79c7c7b commit 0f68f48

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

sentry_sdk/consts.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,13 @@
2929
"debug": False,
3030
}
3131

32-
SDK_INFO = {"name": "sentry-python", "version": VERSION}
32+
33+
# Modified by sentry_sdk.integrations
34+
INTEGRATIONS = []
35+
36+
SDK_INFO = {
37+
"name": "sentry.python",
38+
"version": VERSION,
39+
"packages": [{"package_name": "pypi:sentry-sdk", "version": VERSION}],
40+
"integrations": INTEGRATIONS,
41+
}

sentry_sdk/integrations/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from threading import Lock
22

33
from ..utils import logger
4+
from ..consts import INTEGRATIONS as _installed_integrations
45

56

67
_installer_lock = Lock()
7-
_installed_integrations = {}
88

99

1010
def _get_default_integrations():
@@ -50,4 +50,4 @@ def __call__(self):
5050
return
5151

5252
self.install()
53-
_installed_integrations[self.identifier] = self
53+
_installed_integrations.append(self.identifier)

0 commit comments

Comments
 (0)