fastapi-factory-utilities 0.2.9__py3-none-any.whl → 0.2.11__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.
- fastapi_factory_utilities/core/plugins/opentelemetry_plugin/builder.py +6 -4
- {fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/METADATA +2 -1
- {fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/RECORD +6 -6
- {fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/LICENSE +0 -0
- {fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/WHEEL +0 -0
- {fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/entry_points.txt +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Any, Self
|
|
4
4
|
|
|
5
|
-
from opentelemetry.exporter.otlp.proto.
|
|
6
|
-
from opentelemetry.exporter.otlp.proto.
|
|
5
|
+
from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import OTLPMetricExporter
|
|
6
|
+
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
|
|
7
7
|
from opentelemetry.metrics import set_meter_provider
|
|
8
8
|
from opentelemetry.propagate import set_global_textmap
|
|
9
9
|
from opentelemetry.propagators.b3 import B3MultiFormat
|
|
@@ -163,8 +163,9 @@ class OpenTelemetryPluginBuilder:
|
|
|
163
163
|
|
|
164
164
|
# Setup the Exporter
|
|
165
165
|
exporter = OTLPMetricExporter(
|
|
166
|
-
endpoint=f"{self._config.endpoint.unicode_string()}
|
|
166
|
+
endpoint=f"{self._config.endpoint.unicode_string()}",
|
|
167
167
|
timeout=self._config.timeout,
|
|
168
|
+
insecure=True if str(self._config.endpoint).startswith("http") else False,
|
|
168
169
|
)
|
|
169
170
|
|
|
170
171
|
# Setup the Metric Reader
|
|
@@ -215,8 +216,9 @@ class OpenTelemetryPluginBuilder:
|
|
|
215
216
|
|
|
216
217
|
# Setup the Exporter
|
|
217
218
|
exporter = OTLPSpanExporter(
|
|
218
|
-
endpoint=f"{self._config.endpoint.unicode_string()}
|
|
219
|
+
endpoint=f"{self._config.endpoint.unicode_string()}",
|
|
219
220
|
timeout=self._config.timeout,
|
|
221
|
+
insecure=True if str(self._config.endpoint).startswith("http") else False,
|
|
220
222
|
)
|
|
221
223
|
|
|
222
224
|
# Setup the Span Processor
|
{fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: fastapi_factory_utilities
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.11
|
|
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
|
|
@@ -21,6 +21,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
21
21
|
Requires-Dist: beanie (>=1.27.0,<2.0.0)
|
|
22
22
|
Requires-Dist: fastapi (>=0.115.4,<0.116.0)
|
|
23
23
|
Requires-Dist: httpx (>=0.28.1,<0.29.0)
|
|
24
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (>=1.26.0,<2.0.0)
|
|
24
25
|
Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.26.0,<2.0.0)
|
|
25
26
|
Requires-Dist: opentelemetry-instrumentation-fastapi (>=0.49b1,<0.50)
|
|
26
27
|
Requires-Dist: opentelemetry-instrumentation-pymongo (>=0.49b2,<0.50)
|
{fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/RECORD
RENAMED
|
@@ -27,7 +27,7 @@ fastapi_factory_utilities/core/plugins/odm_plugin/documents.py,sha256=BFQYHxHBmT
|
|
|
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=5hZ5Cvdqqlnb4NITWlrg_o078B4U0U61MjAXG3VxcH8,8747
|
|
29
29
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/__init__.py,sha256=UsXPjiAASn5GIHW8vrF32mklxGNq8ajILV-ty4K1Tbs,4371
|
|
30
|
-
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/builder.py,sha256=
|
|
30
|
+
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/builder.py,sha256=ZStlbq7zYtlXXrTloCDmizqxCRu9g2vY5T1oM-AzxLg,10001
|
|
31
31
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/configs.py,sha256=4mMa5SrmnPY1R_gVFRtFhi9WNaTGEGZL5iNNhyjcZQ0,3448
|
|
32
32
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/exceptions.py,sha256=CpsHayfQpP0zghN8y5PP6TBy-cXhHoNxBR--I86gAdE,327
|
|
33
33
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/helpers.py,sha256=qpTIzX67orJz7vy6SBIwRs24omMBoToJkhpurZRjPuk,1533
|
|
@@ -64,8 +64,8 @@ fastapi_factory_utilities/example/models/books/repository.py,sha256=7K63uAsSEGZ2
|
|
|
64
64
|
fastapi_factory_utilities/example/services/books/__init__.py,sha256=Z06yNRoA7Zg3TGN-Q9rrvJg6Bbx-qJw661MVwukV6vQ,148
|
|
65
65
|
fastapi_factory_utilities/example/services/books/services.py,sha256=-x7d4hotUWLzWo5uImMjFmtNcSTHwWv2bfttIbYYKbA,5380
|
|
66
66
|
fastapi_factory_utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
|
-
fastapi_factory_utilities-0.2.
|
|
68
|
-
fastapi_factory_utilities-0.2.
|
|
69
|
-
fastapi_factory_utilities-0.2.
|
|
70
|
-
fastapi_factory_utilities-0.2.
|
|
71
|
-
fastapi_factory_utilities-0.2.
|
|
67
|
+
fastapi_factory_utilities-0.2.11.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
|
|
68
|
+
fastapi_factory_utilities-0.2.11.dist-info/METADATA,sha256=VjUjf7vr94g7d-cmMgWR3yPgnBZHLFqGHmhWoypcwvw,3387
|
|
69
|
+
fastapi_factory_utilities-0.2.11.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
70
|
+
fastapi_factory_utilities-0.2.11.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
|
|
71
|
+
fastapi_factory_utilities-0.2.11.dist-info/RECORD,,
|
{fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/LICENSE
RENAMED
|
File without changes
|
{fastapi_factory_utilities-0.2.9.dist-info → fastapi_factory_utilities-0.2.11.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|