fastapi-factory-utilities 0.3.6__py3-none-any.whl → 0.3.8__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.

Potentially problematic release.


This version of fastapi-factory-utilities might be problematic. Click here for more details.

@@ -3,6 +3,7 @@
3
3
  import asyncio
4
4
  from typing import cast
5
5
 
6
+ from opentelemetry.instrumentation.aiohttp_client import AioHttpClientInstrumentor
6
7
  from opentelemetry.instrumentation.fastapi import ( # pyright: ignore[reportMissingTypeStubs]
7
8
  FastAPIInstrumentor,
8
9
  )
@@ -66,6 +67,11 @@ def on_load(
66
67
  meter_provider=otel_builder.meter_provider,
67
68
  excluded_urls=otel_config.excluded_urls,
68
69
  )
70
+ # Instrument the AioHttpClient
71
+ AioHttpClientInstrumentor().instrument( # pyright: ignore[reportUnknownMemberType]
72
+ tracer_provider=otel_builder.tracer_provider,
73
+ meter_provider=otel_builder.meter_provider,
74
+ )
69
75
 
70
76
  _logger.debug(f"OpenTelemetry plugin loaded. {otel_config.activate=}")
71
77
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fastapi_factory_utilities
3
- Version: 0.3.6
3
+ Version: 0.3.8
4
4
  Summary: Consolidate libraries and utilities to create microservices in Python with FastAPI, Beanie, Httpx, AioPika and OpenTelemetry.
5
5
  License: MIT
6
6
  Keywords: python,fastapi,beanie,httpx,opentelemetry,microservices
@@ -18,14 +18,14 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Topic :: Software Development :: Libraries
19
19
  Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
20
20
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
- Requires-Dist: aiohttp[speedups] (>=3.11.16,<4.0.0)
22
- Requires-Dist: beanie (>=1.27.0,<2.0.0)
23
- Requires-Dist: fastapi (>=0.115.4,<0.116.0)
24
- Requires-Dist: httpx (>=0.28.1,<0.29.0)
21
+ Requires-Dist: aiohttp[speedups] (>=3.12.13,<4.0.0)
22
+ Requires-Dist: beanie (>=1.30.0,<2.0.0)
23
+ Requires-Dist: fastapi (>=0.115.13,<1)
25
24
  Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (>=1.26.0,<2.0.0)
26
25
  Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.26.0,<2.0.0)
27
- Requires-Dist: opentelemetry-instrumentation-fastapi (>=0.49b1,<0.50)
28
- Requires-Dist: opentelemetry-instrumentation-pymongo (>=0.49b2,<0.50)
26
+ Requires-Dist: opentelemetry-instrumentation-aiohttp-client (>=0.55b1,<0.56)
27
+ Requires-Dist: opentelemetry-instrumentation-fastapi (>=0,<1)
28
+ Requires-Dist: opentelemetry-instrumentation-pymongo (>=0,<1)
29
29
  Requires-Dist: opentelemetry-propagator-b3 (>=1.26.0,<2.0.0)
30
30
  Requires-Dist: opentelemetry-sdk (>=1.26.0,<2.0.0)
31
31
  Requires-Dist: pyaml (>=25.1.0,<26.0.0)
@@ -34,8 +34,8 @@ Requires-Dist: pyjwt (>=2.10.1,<3.0.0)
34
34
  Requires-Dist: pymongo (>=4.9.2,<4.10.0)
35
35
  Requires-Dist: reactivex (>=4.0.4,<5.0.0)
36
36
  Requires-Dist: structlog (>=24.1,<26.0)
37
- Requires-Dist: typer (>=0.15.1,<0.16.0)
38
- Requires-Dist: uvicorn (>=0.32.0,<0.33.0)
37
+ Requires-Dist: typer (>=0,<1)
38
+ Requires-Dist: uvicorn (>=0.34.3,<1)
39
39
  Project-URL: Homepage, https://github.com/miragecentury/fastapi_factory_utilities
40
40
  Project-URL: Repository, https://github.com/miragecentury/fastapi_factory_utilities
41
41
  Description-Content-Type: text/markdown
@@ -26,7 +26,7 @@ fastapi_factory_utilities/core/plugins/odm_plugin/depends.py,sha256=OcLsfTLzMBk_
26
26
  fastapi_factory_utilities/core/plugins/odm_plugin/documents.py,sha256=BFQYHxHBmTacJRfhZi2OffvT_RAFvAAiDVQAa_d6Y7w,1141
27
27
  fastapi_factory_utilities/core/plugins/odm_plugin/exceptions.py,sha256=acnKJB0lGAzDs-7-LjBap8shjP3iV1a7dw7ouPVF27o,551
28
28
  fastapi_factory_utilities/core/plugins/odm_plugin/repositories.py,sha256=pOOADEe8mz6FuZkNzV46H8RNvi77FojJqb3bz9RQapo,11279
29
- fastapi_factory_utilities/core/plugins/opentelemetry_plugin/__init__.py,sha256=UsXPjiAASn5GIHW8vrF32mklxGNq8ajILV-ty4K1Tbs,4371
29
+ fastapi_factory_utilities/core/plugins/opentelemetry_plugin/__init__.py,sha256=4mq4a6U_nRxe3VxpHnC0FhRh0hpKO8l6QSUE7AazeBw,4689
30
30
  fastapi_factory_utilities/core/plugins/opentelemetry_plugin/builder.py,sha256=9npQImifYAbEg0lFG7KwZ8V78SNrPoaINgd8vKitdMw,12509
31
31
  fastapi_factory_utilities/core/plugins/opentelemetry_plugin/configs.py,sha256=pMG9leMB7rtdkdGFLIxXflV7bf9epGrrYPt2N97KZcM,3750
32
32
  fastapi_factory_utilities/core/plugins/opentelemetry_plugin/exceptions.py,sha256=CpsHayfQpP0zghN8y5PP6TBy-cXhHoNxBR--I86gAdE,327
@@ -71,8 +71,8 @@ fastapi_factory_utilities/example/models/books/repository.py,sha256=7K63uAsSEGZ2
71
71
  fastapi_factory_utilities/example/services/books/__init__.py,sha256=Z06yNRoA7Zg3TGN-Q9rrvJg6Bbx-qJw661MVwukV6vQ,148
72
72
  fastapi_factory_utilities/example/services/books/services.py,sha256=-x7d4hotUWLzWo5uImMjFmtNcSTHwWv2bfttIbYYKbA,5380
73
73
  fastapi_factory_utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- fastapi_factory_utilities-0.3.6.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
75
- fastapi_factory_utilities-0.3.6.dist-info/METADATA,sha256=FWIQG-J-8SgXiUl9EnG-cJJoXHUwJGtjgr6jewvbjiA,3477
76
- fastapi_factory_utilities-0.3.6.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
77
- fastapi_factory_utilities-0.3.6.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
78
- fastapi_factory_utilities-0.3.6.dist-info/RECORD,,
74
+ fastapi_factory_utilities-0.3.8.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
75
+ fastapi_factory_utilities-0.3.8.dist-info/METADATA,sha256=3sOK8wBO_jSGoJ5yQgMgLHAo5Zv-sgCc0ZEUgWzAcaE,3478
76
+ fastapi_factory_utilities-0.3.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
77
+ fastapi_factory_utilities-0.3.8.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
78
+ fastapi_factory_utilities-0.3.8.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any