reqly 0.1.3__tar.gz → 0.1.4__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 (25) hide show
  1. {reqly-0.1.3 → reqly-0.1.4}/PKG-INFO +1 -1
  2. {reqly-0.1.3 → reqly-0.1.4}/pyproject.toml +1 -1
  3. {reqly-0.1.3 → reqly-0.1.4}/reqly/__init__.py +13 -1
  4. {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/PKG-INFO +1 -1
  5. {reqly-0.1.3 → reqly-0.1.4}/README.md +0 -0
  6. {reqly-0.1.3 → reqly-0.1.4}/reqly/core/__init__.py +0 -0
  7. {reqly-0.1.3 → reqly-0.1.4}/reqly/core/buffer.py +0 -0
  8. {reqly-0.1.3 → reqly-0.1.4}/reqly/core/capture.py +0 -0
  9. {reqly-0.1.3 → reqly-0.1.4}/reqly/core/client.py +0 -0
  10. {reqly-0.1.3 → reqly-0.1.4}/reqly/core/config.py +0 -0
  11. {reqly-0.1.3 → reqly-0.1.4}/reqly/core/sampling.py +0 -0
  12. {reqly-0.1.3 → reqly-0.1.4}/reqly/core/shipper.py +0 -0
  13. {reqly-0.1.3 → reqly-0.1.4}/reqly/integrations/__init__.py +0 -0
  14. {reqly-0.1.3 → reqly-0.1.4}/reqly/integrations/fastapi.py +0 -0
  15. {reqly-0.1.3 → reqly-0.1.4}/reqly/integrations/flask.py +0 -0
  16. {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/SOURCES.txt +0 -0
  17. {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/dependency_links.txt +0 -0
  18. {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/requires.txt +0 -0
  19. {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/top_level.txt +0 -0
  20. {reqly-0.1.3 → reqly-0.1.4}/setup.cfg +0 -0
  21. {reqly-0.1.3 → reqly-0.1.4}/tests/test_buffer.py +0 -0
  22. {reqly-0.1.3 → reqly-0.1.4}/tests/test_capture.py +0 -0
  23. {reqly-0.1.3 → reqly-0.1.4}/tests/test_fastapi_integration.py +0 -0
  24. {reqly-0.1.3 → reqly-0.1.4}/tests/test_flask_integration.py +0 -0
  25. {reqly-0.1.3 → reqly-0.1.4}/tests/test_sampling.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reqly
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Auto-instrumentation SDK for FastAPI and Flask: zero-code latency, error rates, and status codes shipped to a Reqly collector.
5
5
  Author: reqly
6
6
  License-Expression: GPL-3.0-or-later
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reqly"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "Auto-instrumentation SDK for FastAPI and Flask: zero-code latency, error rates, and status codes shipped to a Reqly collector."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,11 +1,17 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import logging
4
+ from importlib.metadata import PackageNotFoundError
5
+ from importlib.metadata import version as _pkg_version
4
6
 
5
7
  from .core.client import ReqlyClient
6
8
  from .core.config import Config
7
9
 
8
- __version__ = "0.1.0"
10
+ try:
11
+ __version__ = _pkg_version("reqly")
12
+ except PackageNotFoundError:
13
+ __version__ = "0.1.3"
14
+
9
15
  __all__ = ["instrument"]
10
16
 
11
17
  logger = logging.getLogger("reqly")
@@ -71,6 +77,12 @@ def instrument(
71
77
  )
72
78
  client = ReqlyClient(config)
73
79
 
80
+ if config.capture_request_body:
81
+ logger.warning(
82
+ "reqly: capture_request_body=True is set but body capture is not yet "
83
+ "implemented — request bodies will not be captured"
84
+ )
85
+
74
86
  if framework == "fastapi":
75
87
  from .integrations.fastapi import instrument_fastapi
76
88
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reqly
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Auto-instrumentation SDK for FastAPI and Flask: zero-code latency, error rates, and status codes shipped to a Reqly collector.
5
5
  Author: reqly
6
6
  License-Expression: GPL-3.0-or-later
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes