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.
- {reqly-0.1.3 → reqly-0.1.4}/PKG-INFO +1 -1
- {reqly-0.1.3 → reqly-0.1.4}/pyproject.toml +1 -1
- {reqly-0.1.3 → reqly-0.1.4}/reqly/__init__.py +13 -1
- {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/PKG-INFO +1 -1
- {reqly-0.1.3 → reqly-0.1.4}/README.md +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/core/__init__.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/core/buffer.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/core/capture.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/core/client.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/core/config.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/core/sampling.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/core/shipper.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/integrations/__init__.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/integrations/fastapi.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly/integrations/flask.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/SOURCES.txt +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/dependency_links.txt +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/requires.txt +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/reqly.egg-info/top_level.txt +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/setup.cfg +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/tests/test_buffer.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/tests/test_capture.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/tests/test_fastapi_integration.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/tests/test_flask_integration.py +0 -0
- {reqly-0.1.3 → reqly-0.1.4}/tests/test_sampling.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "reqly"
|
|
7
|
-
version = "0.1.
|
|
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
|
-
|
|
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
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|