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.
Files changed (19) hide show
  1. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/PKG-INFO +1 -1
  2. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/pyproject.toml +1 -1
  3. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/config.py +1 -1
  4. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/django.py +5 -6
  5. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/PKG-INFO +1 -1
  6. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/README.md +0 -0
  7. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/setup.cfg +0 -0
  8. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/__init__.py +0 -0
  9. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/client.py +0 -0
  10. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/event.py +0 -0
  11. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/__init__.py +0 -0
  12. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/integrations/fastapi.py +0 -0
  13. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors/utils.py +0 -0
  14. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/SOURCES.txt +0 -0
  15. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/dependency_links.txt +0 -0
  16. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/requires.txt +0 -0
  17. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/src/watchdock_errors.egg-info/top_level.txt +0 -0
  18. {watchdock_errors-0.1.1 → watchdock_errors-0.1.2}/tests/test_client.py +0 -0
  19. {watchdock_errors-0.1.1 → watchdock_errors-0.1.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.1.1
3
+ Version: 0.1.2
4
4
  Summary: Application error tracking SDK for the Watchdock platform
5
5
  License: MIT
6
6
  Keywords: error-tracking,observability,watchdock
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "watchdock-errors"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Application error tracking SDK for the Watchdock platform"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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.1", init=False, repr=False)
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:
@@ -34,12 +34,11 @@ class DjangoErrorMiddleware:
34
34
  self.get_response = get_response
35
35
 
36
36
  def __call__(self, request: "HttpRequest") -> "HttpResponse":
37
- try:
38
- response = self.get_response(request)
39
- except Exception as exc:
40
- watchdock_errors.capture_exception(exc, request_context=_build_request_context(request))
41
- raise
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: watchdock-errors
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Application error tracking SDK for the Watchdock platform
5
5
  License: MIT
6
6
  Keywords: error-tracking,observability,watchdock