rebrandly-otel 0.2.9__tar.gz → 0.2.17__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 (26) hide show
  1. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/PKG-INFO +10 -9
  2. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/README.md +9 -8
  3. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/rebrandly_otel.egg-info/PKG-INFO +10 -9
  4. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/setup.py +1 -1
  5. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/otel_utils.py +3 -10
  6. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/LICENSE +0 -0
  7. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/rebrandly_otel.egg-info/SOURCES.txt +0 -0
  8. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/rebrandly_otel.egg-info/dependency_links.txt +0 -0
  9. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/rebrandly_otel.egg-info/requires.txt +0 -0
  10. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/rebrandly_otel.egg-info/top_level.txt +0 -0
  11. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/setup.cfg +0 -0
  12. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/__init__.py +0 -0
  13. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/fastapi_support.py +0 -0
  14. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/flask_support.py +0 -0
  15. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/http_utils.py +0 -0
  16. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/logs.py +0 -0
  17. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/metrics.py +0 -0
  18. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/pymysql_instrumentation.py +0 -0
  19. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/rebrandly_otel.py +0 -0
  20. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/src/traces.py +0 -0
  21. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/tests/test_decorators.py +0 -0
  22. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/tests/test_fastapi_support.py +0 -0
  23. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/tests/test_flask_support.py +0 -0
  24. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/tests/test_metrics_and_logs.py +0 -0
  25. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/tests/test_pymysql_instrumentation.py +0 -0
  26. {rebrandly_otel-0.2.9 → rebrandly_otel-0.2.17}/tests/test_usage.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rebrandly_otel
3
- Version: 0.2.9
3
+ Version: 0.2.17
4
4
  Summary: Python OTEL wrapper by Rebrandly
5
5
  Home-page: https://github.com/rebrandly/rebrandly-otel-python
6
6
  Author: Antonio Romano
@@ -51,14 +51,15 @@ pip install rebrandly-otel
51
51
 
52
52
  The SDK is configured through environment variables:
53
53
 
54
- | Variable | Description | Default |
55
- |------------------------------------|-------------|---------|
56
- | `OTEL_SERVICE_NAME` | Service identifier | `default-service-python` |
57
- | `OTEL_SERVICE_VERSION` | Service version | `1.0.0` |
58
- | `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint | `None` |
59
- | `OTEL_DEBUG` | Enable console debugging | `false` |
60
- | `BATCH_EXPORT_TIME_MILLIS` | Batch export interval | `100` |
61
- | `ENV` or `ENVIRONMENT` or `NODE_ENV` | Deployment environment | `local` |
54
+ | Variable | Description | Default |
55
+ |------------------------------------|-------------|---------------------------------|
56
+ | `OTEL_SERVICE_NAME` | Service identifier | `default-service-python` |
57
+ | `OTEL_SERVICE_VERSION` | Service version | `1.0.0` |
58
+ | `OTEL_SERVICE_APPLICATION` | Application namespace (groups multiple services under one application) | Fallback to `OTEL_SERVICE_NAME` |
59
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint | `None` |
60
+ | `OTEL_DEBUG` | Enable console debugging | `false` |
61
+ | `BATCH_EXPORT_TIME_MILLIS` | Batch export interval | `100` |
62
+ | `ENV` or `ENVIRONMENT` or `NODE_ENV` | Deployment environment | `local` |
62
63
 
63
64
  ## Core Components
64
65
 
@@ -24,14 +24,15 @@ pip install rebrandly-otel
24
24
 
25
25
  The SDK is configured through environment variables:
26
26
 
27
- | Variable | Description | Default |
28
- |------------------------------------|-------------|---------|
29
- | `OTEL_SERVICE_NAME` | Service identifier | `default-service-python` |
30
- | `OTEL_SERVICE_VERSION` | Service version | `1.0.0` |
31
- | `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint | `None` |
32
- | `OTEL_DEBUG` | Enable console debugging | `false` |
33
- | `BATCH_EXPORT_TIME_MILLIS` | Batch export interval | `100` |
34
- | `ENV` or `ENVIRONMENT` or `NODE_ENV` | Deployment environment | `local` |
27
+ | Variable | Description | Default |
28
+ |------------------------------------|-------------|---------------------------------|
29
+ | `OTEL_SERVICE_NAME` | Service identifier | `default-service-python` |
30
+ | `OTEL_SERVICE_VERSION` | Service version | `1.0.0` |
31
+ | `OTEL_SERVICE_APPLICATION` | Application namespace (groups multiple services under one application) | Fallback to `OTEL_SERVICE_NAME` |
32
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint | `None` |
33
+ | `OTEL_DEBUG` | Enable console debugging | `false` |
34
+ | `BATCH_EXPORT_TIME_MILLIS` | Batch export interval | `100` |
35
+ | `ENV` or `ENVIRONMENT` or `NODE_ENV` | Deployment environment | `local` |
35
36
 
36
37
  ## Core Components
37
38
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rebrandly_otel
3
- Version: 0.2.9
3
+ Version: 0.2.17
4
4
  Summary: Python OTEL wrapper by Rebrandly
5
5
  Home-page: https://github.com/rebrandly/rebrandly-otel-python
6
6
  Author: Antonio Romano
@@ -51,14 +51,15 @@ pip install rebrandly-otel
51
51
 
52
52
  The SDK is configured through environment variables:
53
53
 
54
- | Variable | Description | Default |
55
- |------------------------------------|-------------|---------|
56
- | `OTEL_SERVICE_NAME` | Service identifier | `default-service-python` |
57
- | `OTEL_SERVICE_VERSION` | Service version | `1.0.0` |
58
- | `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint | `None` |
59
- | `OTEL_DEBUG` | Enable console debugging | `false` |
60
- | `BATCH_EXPORT_TIME_MILLIS` | Batch export interval | `100` |
61
- | `ENV` or `ENVIRONMENT` or `NODE_ENV` | Deployment environment | `local` |
54
+ | Variable | Description | Default |
55
+ |------------------------------------|-------------|---------------------------------|
56
+ | `OTEL_SERVICE_NAME` | Service identifier | `default-service-python` |
57
+ | `OTEL_SERVICE_VERSION` | Service version | `1.0.0` |
58
+ | `OTEL_SERVICE_APPLICATION` | Application namespace (groups multiple services under one application) | Fallback to `OTEL_SERVICE_NAME` |
59
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint | `None` |
60
+ | `OTEL_DEBUG` | Enable console debugging | `false` |
61
+ | `BATCH_EXPORT_TIME_MILLIS` | Batch export interval | `100` |
62
+ | `ENV` or `ENVIRONMENT` or `NODE_ENV` | Deployment environment | `local` |
62
63
 
63
64
  ## Core Components
64
65
 
@@ -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.2.9",
8
+ version="0.2.17",
9
9
  author="Antonio Romano",
10
10
  author_email="antonio@rebrandly.com",
11
11
  description="Python OTEL wrapper by Rebrandly",
@@ -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: env,
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 get_subsystem_name(subsystem_name: str = None) -> str:
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