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.

@@ -2,8 +2,8 @@
2
2
 
3
3
  from typing import Any, Self
4
4
 
5
- from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter
6
- from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
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()}v1/metrics",
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()}v1/traces",
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fastapi_factory_utilities
3
- Version: 0.2.9
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)
@@ -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=DsD1vUtTIMXCxLsQ2KbMaQthdPfvZsI95uLdD7pkeiE,9838
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.9.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
68
- fastapi_factory_utilities-0.2.9.dist-info/METADATA,sha256=PCv3Kzn1lJ0AFAIRFrL2Y3WtB20_ktF_VAtq2XZH6AM,3314
69
- fastapi_factory_utilities-0.2.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
70
- fastapi_factory_utilities-0.2.9.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
71
- fastapi_factory_utilities-0.2.9.dist-info/RECORD,,
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,,