rebrandly-otel 0.2.9__tar.gz → 0.2.16__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.
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/PKG-INFO +1 -1
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/rebrandly_otel.egg-info/PKG-INFO +1 -1
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/setup.py +1 -1
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/otel_utils.py +3 -10
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/LICENSE +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/README.md +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/rebrandly_otel.egg-info/SOURCES.txt +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/rebrandly_otel.egg-info/dependency_links.txt +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/rebrandly_otel.egg-info/requires.txt +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/rebrandly_otel.egg-info/top_level.txt +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/setup.cfg +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/__init__.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/fastapi_support.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/flask_support.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/http_utils.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/logs.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/metrics.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/pymysql_instrumentation.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/rebrandly_otel.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/src/traces.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/tests/test_decorators.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/tests/test_fastapi_support.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/tests/test_flask_support.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/tests/test_metrics_and_logs.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/tests/test_pymysql_instrumentation.py +0 -0
- {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.16}/tests/test_usage.py +0 -0
|
@@ -27,7 +27,7 @@ def create_resource(name: str = None, version: str = None) -> Resource:
|
|
|
27
27
|
service_attributes.SERVICE_NAME: name,
|
|
28
28
|
service_attributes.SERVICE_VERSION: version,
|
|
29
29
|
process_attributes.PROCESS_RUNTIME_VERSION: f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}",
|
|
30
|
-
SERVICE_NAMESPACE:
|
|
30
|
+
SERVICE_NAMESPACE: get_application_name(),
|
|
31
31
|
DEPLOYMENT_ENVIRONMENT: env,
|
|
32
32
|
telemetry_attributes.TELEMETRY_SDK_LANGUAGE: "python",
|
|
33
33
|
telemetry_attributes.TELEMETRY_SDK_NAME: "rebrandly-otel-sdk",
|
|
@@ -86,15 +86,8 @@ def get_service_version(service_version: str = None) -> str:
|
|
|
86
86
|
return service_version
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
def
|
|
90
|
-
|
|
91
|
-
Get subsystem name for Coralogix.
|
|
92
|
-
Checks OTEL_SUBSYSTEM_NAME or CX_SUBSYSTEM_NAME environment variables.
|
|
93
|
-
Returns None if not set (subsystem is optional).
|
|
94
|
-
"""
|
|
95
|
-
if subsystem_name is None:
|
|
96
|
-
return os.environ.get('OTEL_SUBSYSTEM_NAME', os.environ.get('CX_SUBSYSTEM_NAME', None))
|
|
97
|
-
return subsystem_name
|
|
89
|
+
def get_application_name() -> str:
|
|
90
|
+
return os.environ.get('OTEL_SERVICE_APPLICATION', get_service_name())
|
|
98
91
|
|
|
99
92
|
|
|
100
93
|
def get_otlp_endpoint(otlp_endpoint: str = None) -> str | None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|