rebrandly-otel 0.1.29__tar.gz → 0.1.30__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.

Potentially problematic release.


This version of rebrandly-otel might be problematic. Click here for more details.

Files changed (20) hide show
  1. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/PKG-INFO +1 -1
  2. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/rebrandly_otel.egg-info/PKG-INFO +1 -1
  3. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/setup.py +1 -1
  4. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/otel_utils.py +4 -3
  5. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/LICENSE +0 -0
  6. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/README.md +0 -0
  7. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/rebrandly_otel.egg-info/SOURCES.txt +0 -0
  8. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/rebrandly_otel.egg-info/dependency_links.txt +0 -0
  9. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/rebrandly_otel.egg-info/requires.txt +0 -0
  10. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/rebrandly_otel.egg-info/top_level.txt +0 -0
  11. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/setup.cfg +0 -0
  12. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/__init__.py +0 -0
  13. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/fastapi_support.py +0 -0
  14. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/flask_support.py +0 -0
  15. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/logs.py +0 -0
  16. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/metrics.py +0 -0
  17. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/pymysql_instrumentation.py +0 -0
  18. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/rebrandly_otel.py +0 -0
  19. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/src/traces.py +0 -0
  20. {rebrandly_otel-0.1.29 → rebrandly_otel-0.1.30}/tests/test_usage.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rebrandly_otel
3
- Version: 0.1.29
3
+ Version: 0.1.30
4
4
  Summary: Python OTEL wrapper by Rebrandly
5
5
  Home-page: https://github.com/rebrandly/rebrandly-otel-python
6
6
  Author: Antonio Romano
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rebrandly_otel
3
- Version: 0.1.29
3
+ Version: 0.1.30
4
4
  Summary: Python OTEL wrapper by Rebrandly
5
5
  Home-page: https://github.com/rebrandly/rebrandly-otel-python
6
6
  Author: Antonio Romano
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="rebrandly_otel",
8
- version="0.1.29",
8
+ version="0.1.30",
9
9
  author="Antonio Romano",
10
10
  author_email="antonio@rebrandly.com",
11
11
  description="Python OTEL wrapper by Rebrandly",
@@ -58,10 +58,11 @@ def get_service_version(service_version: str = None) -> str:
58
58
  def get_otlp_endpoint(otlp_endpoint: str = None) -> str | None:
59
59
  endpoint = otlp_endpoint or os.environ.get('OTEL_EXPORTER_OTLP_ENDPOINT', None)
60
60
 
61
- if endpoint.strip() == "":
62
- return None
63
-
64
61
  if endpoint is not None:
62
+
63
+ if endpoint.strip() == "":
64
+ return None
65
+
65
66
  try:
66
67
  from urllib.parse import urlparse
67
68
 
File without changes