watchdock-errors 0.2.0__tar.gz → 0.2.2__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.
Files changed (24) hide show
  1. {watchdock_errors-0.2.0/src/watchdock_errors.egg-info → watchdock_errors-0.2.2}/PKG-INFO +1 -1
  2. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/__init__.py +25 -0
  3. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2/src/watchdock_errors.egg-info}/PKG-INFO +1 -1
  4. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors.egg-info/SOURCES.txt +2 -0
  5. watchdock_errors-0.2.2/src/watchdock_errors.egg-info/scm_file_list.json +19 -0
  6. watchdock_errors-0.2.2/src/watchdock_errors.egg-info/scm_version.json +8 -0
  7. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/.github/workflows/ci.yml +0 -0
  8. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/.github/workflows/release.yml +0 -0
  9. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/.gitignore +0 -0
  10. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/README.md +0 -0
  11. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/pyproject.toml +0 -0
  12. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/setup.cfg +0 -0
  13. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/client.py +0 -0
  14. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/config.py +0 -0
  15. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/event.py +0 -0
  16. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/integrations/__init__.py +0 -0
  17. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/integrations/django.py +0 -0
  18. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/integrations/fastapi.py +0 -0
  19. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors/utils.py +0 -0
  20. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors.egg-info/dependency_links.txt +0 -0
  21. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors.egg-info/requires.txt +0 -0
  22. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/src/watchdock_errors.egg-info/top_level.txt +0 -0
  23. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/tests/test_client.py +0 -0
  24. {watchdock_errors-0.2.0 → watchdock_errors-0.2.2}/tests/test_event.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: watchdock-errors
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Application error tracking SDK for the Watchdock platform
5
5
  License: MIT
6
6
  Keywords: error-tracking,observability,watchdock
@@ -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,27 @@ 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
+ import time
143
+ time.sleep(5) # Wait for the server to be ready before pinging
144
+ try:
145
+ requests.post(
146
+ f"{config.endpoint.rstrip('/')}/api/v1/errors/sdk-init/",
147
+ json={"sdk_version": config.sdk_version, "environment": config.environment},
148
+ headers={
149
+ "Authorization": f"Bearer {config.api_key}",
150
+ "Content-Type": "application/json",
151
+ },
152
+ timeout=3.0,
153
+ )
154
+ except Exception:
155
+ pass # Never block or raise on init ping failure
156
+
157
+ threading.Thread(target=_ping, daemon=True, name="watchdock-init-ping").start()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: watchdock-errors
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Application error tracking SDK for the Watchdock platform
5
5
  License: MIT
6
6
  Keywords: error-tracking,observability,watchdock
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.2.2",
3
+ "distance": 0,
4
+ "node": "gefdacc6610345ad37dfcfd533d1a97715e23d6bd",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-06-29"
8
+ }