apitally 0.14.4__py3-none-any.whl → 0.14.5__py3-none-any.whl

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.
@@ -5,7 +5,6 @@ import tempfile
5
5
  import threading
6
6
  import time
7
7
  from collections import deque
8
- from contextlib import suppress
9
8
  from dataclasses import dataclass, field
10
9
  from functools import lru_cache
11
10
  from io import BufferedReader
@@ -29,14 +28,14 @@ MASKED = "******"
29
28
  ALLOWED_CONTENT_TYPES = ["application/json", "text/plain"]
30
29
  EXCLUDE_PATH_PATTERNS = [
31
30
  r"/_?healthz?$",
32
- r"/_?health[_-]?checks?$",
33
- r"/_?heart[_-]?beats?$",
31
+ r"/_?health[\-_]?checks?$",
32
+ r"/_?heart[\-_]?beats?$",
34
33
  r"/ping$",
35
34
  r"/ready$",
36
35
  r"/live$",
37
36
  ]
38
37
  EXCLUDE_USER_AGENT_PATTERNS = [
39
- r"health[_- ]?check",
38
+ r"health[\-_ ]?check",
40
39
  r"microsoft-azure-application-lb",
41
40
  r"googlehc",
42
41
  r"kube-probe",
@@ -307,9 +306,8 @@ class RequestLogger:
307
306
  @staticmethod
308
307
  def _match_patterns(value: str, patterns: List[str]) -> bool:
309
308
  for pattern in patterns:
310
- with suppress(re.error):
311
- if re.search(pattern, value, re.I) is not None:
312
- return True
309
+ if re.search(pattern, value, re.I) is not None:
310
+ return True
313
311
  return False
314
312
 
315
313
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apitally
3
- Version: 0.14.4
3
+ Version: 0.14.5
4
4
  Summary: Simple API monitoring & analytics for REST APIs built with FastAPI, Flask, Django, Starlette and Litestar.
5
5
  Project-URL: Homepage, https://apitally.io
6
6
  Project-URL: Documentation, https://docs.apitally.io
@@ -14,11 +14,11 @@ apitally/client/client_base.py,sha256=dXsaB7scd0wCd_DcdiUvNlDLZ2pWbWsGDnJ4fLYvJG
14
14
  apitally/client/client_threading.py,sha256=Y8LlA_8LFHAuXym-T4bY_XFqXxiIDw9qFqO6K3FbZy0,7356
15
15
  apitally/client/consumers.py,sha256=w_AFQhVgdtJVt7pVySBvSZwQg-2JVqmD2JQtVBoMkus,2626
16
16
  apitally/client/logging.py,sha256=QMsKIIAFo92PNBUleeTgsrsQa7SEal-oJa1oOHUr1wI,507
17
- apitally/client/request_logging.py,sha256=5i7Gv4yP7iq4tBgw-ppkhlZd_OwMc719ZvWEm16TCvg,13047
17
+ apitally/client/request_logging.py,sha256=kKEPfNVK-T-maz4pkeyu805rZ4B2MFsjWjyu0PeW1WE,12973
18
18
  apitally/client/requests.py,sha256=RdJyvIqQGVHvS-wjpAPUwcO7byOJ6jO8dYqNTU2Furg,3685
19
19
  apitally/client/server_errors.py,sha256=axEhOxqV5SWjk0QCZTLVv2UMIaTfqPc81Typ4DXt66A,4646
20
20
  apitally/client/validation_errors.py,sha256=6G8WYWFgJs9VH9swvkPXJGuOJgymj5ooWA9OwjUTbuM,1964
21
- apitally-0.14.4.dist-info/METADATA,sha256=bE7HFJBsn6IamIlJvehQhTd46k3Lx67imr2Yi7eM_PA,7570
22
- apitally-0.14.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
- apitally-0.14.4.dist-info/licenses/LICENSE,sha256=vbLzC-4TddtXX-_AFEBKMYWRlxC_MN0g66QhPxo8PgY,1065
24
- apitally-0.14.4.dist-info/RECORD,,
21
+ apitally-0.14.5.dist-info/METADATA,sha256=YlHcMcEDL-0mhhfXhQPS1PbbsobvZJhn8Ie8jiPfUpA,7570
22
+ apitally-0.14.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
+ apitally-0.14.5.dist-info/licenses/LICENSE,sha256=vbLzC-4TddtXX-_AFEBKMYWRlxC_MN0g66QhPxo8PgY,1065
24
+ apitally-0.14.5.dist-info/RECORD,,