road24-artifacthub 0.1.0__tar.gz → 0.1.1__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.
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/Makefile +5 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/PKG-INFO +15 -16
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/README.md +14 -15
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/pyproject.toml +1 -1
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/.claude/CLAUDE.md +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/.claude/agents/engineer.md +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/.claude/agents/tester.md +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/.gitignore +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/.hooks/check-commit-msg.sh +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/.pre-commit-config.yaml +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/commands/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/commands/test_logs_db.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/commands/test_logs_exceptions.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/commands/test_logs_http_input.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/commands/test_logs_http_output.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/commands/test_logs_redis.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/commands/test_metrics_http.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/database/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/database/config.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/database/mixins.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/http.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/redis.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/road24.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/settings.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/core/utils.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/src/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/examples/src/main.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/main.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/_formatter.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/_sanitizer.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/_schemas.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/_types.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/integrations/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/integrations/_base.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/integrations/fastapi.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/integrations/httpx.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/integrations/redis.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/integrations/sqlalchemy.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/metrics/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/metrics/db.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/metrics/http.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/road24_sdk/metrics/redis.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/conftest.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_data_classes.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_formatter.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_init.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/test_base.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/test_fastapi.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/test_httpx.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/test_redis.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/test_sqlalchemy.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_metrics/__init__.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_metrics/test_db.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_metrics/test_http.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_metrics/test_redis.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_sanitizer.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_schemas.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_types.py +0 -0
- {road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: road24-artifacthub
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Shared logging and metrics library for Road24 FastAPI microservices
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: build>=1.4.0
|
|
@@ -56,28 +56,27 @@ pip install road24-artifacthub[dev]
|
|
|
56
56
|
```python
|
|
57
57
|
import road24_sdk
|
|
58
58
|
from fastapi import FastAPI
|
|
59
|
+
from httpx import AsyncClient, Timeout
|
|
59
60
|
from road24_sdk.integrations.fastapi import FastApiLoggingIntegration
|
|
60
61
|
from road24_sdk.integrations.httpx import HttpxLoggingIntegration
|
|
61
62
|
from road24_sdk.integrations.redis import RedisLoggingIntegration
|
|
62
63
|
from road24_sdk.integrations.sqlalchemy import SqlalchemyLoggingIntegration
|
|
63
64
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
# FastAPI
|
|
65
|
+
def setup_road24_sdk():
|
|
66
|
+
road24_sdk.init(
|
|
67
|
+
service_name="my-service",
|
|
68
|
+
log_level="INFO",
|
|
69
|
+
integrations=[
|
|
70
|
+
HttpxLoggingIntegration(),
|
|
71
|
+
SqlalchemyLoggingIntegration(),
|
|
72
|
+
RedisLoggingIntegration(),
|
|
73
|
+
],
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
# FastAPI requires .setup(app) since it needs the app instance
|
|
76
77
|
app = FastAPI()
|
|
78
|
+
setup_road24_sdk()
|
|
77
79
|
FastApiLoggingIntegration().setup(app)
|
|
78
|
-
|
|
79
|
-
# All other clients are auto-instrumented — no .setup() needed
|
|
80
|
-
client = AsyncClient(timeout=Timeout(25.0)) # already instrumented
|
|
81
80
|
```
|
|
82
81
|
|
|
83
82
|
## Available Integrations
|
|
@@ -20,28 +20,27 @@ pip install road24-artifacthub[dev]
|
|
|
20
20
|
```python
|
|
21
21
|
import road24_sdk
|
|
22
22
|
from fastapi import FastAPI
|
|
23
|
+
from httpx import AsyncClient, Timeout
|
|
23
24
|
from road24_sdk.integrations.fastapi import FastApiLoggingIntegration
|
|
24
25
|
from road24_sdk.integrations.httpx import HttpxLoggingIntegration
|
|
25
26
|
from road24_sdk.integrations.redis import RedisLoggingIntegration
|
|
26
27
|
from road24_sdk.integrations.sqlalchemy import SqlalchemyLoggingIntegration
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
# FastAPI
|
|
29
|
+
def setup_road24_sdk():
|
|
30
|
+
road24_sdk.init(
|
|
31
|
+
service_name="my-service",
|
|
32
|
+
log_level="INFO",
|
|
33
|
+
integrations=[
|
|
34
|
+
HttpxLoggingIntegration(),
|
|
35
|
+
SqlalchemyLoggingIntegration(),
|
|
36
|
+
RedisLoggingIntegration(),
|
|
37
|
+
],
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
# FastAPI requires .setup(app) since it needs the app instance
|
|
40
41
|
app = FastAPI()
|
|
42
|
+
setup_road24_sdk()
|
|
41
43
|
FastApiLoggingIntegration().setup(app)
|
|
42
|
-
|
|
43
|
-
# All other clients are auto-instrumented — no .setup() needed
|
|
44
|
-
client = AsyncClient(timeout=Timeout(25.0)) # already instrumented
|
|
45
44
|
```
|
|
46
45
|
|
|
47
46
|
## Available Integrations
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/test_fastapi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{road24_artifacthub-0.1.0 → road24_artifacthub-0.1.1}/tests/test_integrations/test_sqlalchemy.py
RENAMED
|
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
|