road24-artifacthub 0.1.0__py3-none-any.whl → 0.1.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: road24-artifacthub
3
- Version: 0.1.0
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
- road24_sdk.init(
65
- service_name="my-service",
66
- log_level="INFO",
67
- integrations=[
68
- FastApiLoggingIntegration(),
69
- HttpxLoggingIntegration(),
70
- SqlalchemyLoggingIntegration(),
71
- RedisLoggingIntegration(),
72
- ],
73
- )
74
-
75
- # FastAPI still requires .setup(app) since it needs the app instance
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
@@ -13,6 +13,6 @@ road24_sdk/metrics/__init__.py,sha256=vvXfTFdHYnYHkN9REgqvqiGsTkXnszVKXnqHkb5C1F
13
13
  road24_sdk/metrics/db.py,sha256=Lqqy7k1qF8D9sdxEl4qDP5pwqVHXgo1ucDHgUYD4exs,780
14
14
  road24_sdk/metrics/http.py,sha256=Ynbf-IvJwkzU6G2eRNWf99CH8ef-iR7CxfEvHR66OvQ,949
15
15
  road24_sdk/metrics/redis.py,sha256=qdDuG-2px7_Hp1eiFRc4x8F0MG7KbcuiDiFxw8QsavA,805
16
- road24_artifacthub-0.1.0.dist-info/METADATA,sha256=DnB13VHVn2yG1vY2WoRwYoP9QJR_SbTledydFRCBa50,4131
17
- road24_artifacthub-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
18
- road24_artifacthub-0.1.0.dist-info/RECORD,,
16
+ road24_artifacthub-0.1.1.dist-info/METADATA,sha256=yrSPWG9udBlgOSzQv4EF9nkkOy8M7oGb5dhBcNNS4Pw,4072
17
+ road24_artifacthub-0.1.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
18
+ road24_artifacthub-0.1.1.dist-info/RECORD,,