watchdock-errors 0.1.9__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/.github/workflows/release.yml +2 -0
- {watchdock_errors-0.1.9/src/watchdock_errors.egg-info → watchdock_errors-0.2.1}/PKG-INFO +1 -1
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/__init__.py +23 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1/src/watchdock_errors.egg-info}/PKG-INFO +1 -1
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors.egg-info/SOURCES.txt +2 -0
- watchdock_errors-0.2.1/src/watchdock_errors.egg-info/scm_file_list.json +19 -0
- watchdock_errors-0.2.1/src/watchdock_errors.egg-info/scm_version.json +8 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/.github/workflows/ci.yml +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/.gitignore +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/README.md +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/pyproject.toml +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/setup.cfg +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/client.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/config.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/event.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/integrations/__init__.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/integrations/django.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/integrations/fastapi.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/utils.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors.egg-info/dependency_links.txt +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors.egg-info/requires.txt +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors.egg-info/top_level.txt +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/tests/test_client.py +0 -0
- {watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/tests/test_event.py +0 -0
|
@@ -74,6 +74,7 @@ def init(
|
|
|
74
74
|
environment,
|
|
75
75
|
release or "unset",
|
|
76
76
|
)
|
|
77
|
+
_send_init_ping(_config)
|
|
77
78
|
|
|
78
79
|
|
|
79
80
|
def capture_exception(exc: BaseException | None = None, request_context: dict | None = None) -> None:
|
|
@@ -130,3 +131,25 @@ def close() -> None:
|
|
|
130
131
|
_client.close()
|
|
131
132
|
_client = None
|
|
132
133
|
_config = None
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def _send_init_ping(config: "SDKConfig") -> None:
|
|
137
|
+
"""Fire-and-forget POST to register SDK initialisation with the platform."""
|
|
138
|
+
import threading
|
|
139
|
+
import requests
|
|
140
|
+
|
|
141
|
+
def _ping() -> None:
|
|
142
|
+
try:
|
|
143
|
+
requests.post(
|
|
144
|
+
f"{config.endpoint.rstrip('/')}/api/v1/errors/sdk-init/",
|
|
145
|
+
json={"sdk_version": config.sdk_version, "environment": config.environment},
|
|
146
|
+
headers={
|
|
147
|
+
"Authorization": f"Bearer {config.api_key}",
|
|
148
|
+
"Content-Type": "application/json",
|
|
149
|
+
},
|
|
150
|
+
timeout=3.0,
|
|
151
|
+
)
|
|
152
|
+
except Exception:
|
|
153
|
+
pass # Never block or raise on init ping failure
|
|
154
|
+
|
|
155
|
+
threading.Thread(target=_ping, daemon=True, name="watchdock-init-ping").start()
|
|
@@ -12,6 +12,8 @@ src/watchdock_errors.egg-info/PKG-INFO
|
|
|
12
12
|
src/watchdock_errors.egg-info/SOURCES.txt
|
|
13
13
|
src/watchdock_errors.egg-info/dependency_links.txt
|
|
14
14
|
src/watchdock_errors.egg-info/requires.txt
|
|
15
|
+
src/watchdock_errors.egg-info/scm_file_list.json
|
|
16
|
+
src/watchdock_errors.egg-info/scm_version.json
|
|
15
17
|
src/watchdock_errors.egg-info/top_level.txt
|
|
16
18
|
src/watchdock_errors/integrations/__init__.py
|
|
17
19
|
src/watchdock_errors/integrations/django.py
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
"README.md",
|
|
4
|
+
"pyproject.toml",
|
|
5
|
+
".gitignore",
|
|
6
|
+
"src/watchdock_errors/__init__.py",
|
|
7
|
+
"src/watchdock_errors/config.py",
|
|
8
|
+
"src/watchdock_errors/utils.py",
|
|
9
|
+
"src/watchdock_errors/client.py",
|
|
10
|
+
"src/watchdock_errors/event.py",
|
|
11
|
+
"src/watchdock_errors/integrations/__init__.py",
|
|
12
|
+
"src/watchdock_errors/integrations/fastapi.py",
|
|
13
|
+
"src/watchdock_errors/integrations/django.py",
|
|
14
|
+
"tests/test_client.py",
|
|
15
|
+
"tests/test_event.py",
|
|
16
|
+
".github/workflows/release.yml",
|
|
17
|
+
".github/workflows/ci.yml"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/integrations/__init__.py
RENAMED
|
File without changes
|
{watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/integrations/django.py
RENAMED
|
File without changes
|
{watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors/integrations/fastapi.py
RENAMED
|
File without changes
|
|
File without changes
|
{watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors.egg-info/requires.txt
RENAMED
|
File without changes
|
{watchdock_errors-0.1.9 → watchdock_errors-0.2.1}/src/watchdock_errors.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|