watchdock-errors 0.1.1__tar.gz → 0.1.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.
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/PKG-INFO +1 -1
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/pyproject.toml +1 -1
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/config.py +1 -1
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/django.py +5 -6
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/PKG-INFO +1 -1
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/README.md +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/setup.cfg +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/__init__.py +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/client.py +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/event.py +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/__init__.py +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/fastapi.py +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/utils.py +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/SOURCES.txt +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/dependency_links.txt +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/requires.txt +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/top_level.txt +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/tests/test_client.py +0 -0
- {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/tests/test_event.py +0 -0
|
@@ -17,7 +17,7 @@ class SDKConfig:
|
|
|
17
17
|
|
|
18
18
|
# Internal — appended to every event payload
|
|
19
19
|
sdk_name: str = field(default="watchdock-errors", init=False, repr=False)
|
|
20
|
-
sdk_version: str = field(default="0.1.
|
|
20
|
+
sdk_version: str = field(default="0.1.2", init=False, repr=False)
|
|
21
21
|
|
|
22
22
|
@property
|
|
23
23
|
def ingest_url(self) -> str:
|
{watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/django.py
RENAMED
|
@@ -34,12 +34,11 @@ class DjangoErrorMiddleware:
|
|
|
34
34
|
self.get_response = get_response
|
|
35
35
|
|
|
36
36
|
def __call__(self, request: "HttpRequest") -> "HttpResponse":
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return response
|
|
37
|
+
return self.get_response(request)
|
|
38
|
+
|
|
39
|
+
def process_exception(self, request: "HttpRequest", exception: Exception) -> None:
|
|
40
|
+
watchdock_errors.capture_exception(exception, request_context=_build_request_context(request))
|
|
41
|
+
return None
|
|
43
42
|
|
|
44
43
|
|
|
45
44
|
def _build_request_context(request: "HttpRequest") -> dict:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/__init__.py
RENAMED
|
File without changes
|
{watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/fastapi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/requires.txt
RENAMED
|
File without changes
|
{watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|