rebrandly-otel 0.1.34__tar.gz → 0.1.36__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.1.34 → rebrandly_otel-0.1.36}/PKG-INFO +1 -1
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/rebrandly_otel.egg-info/PKG-INFO +1 -1
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/setup.py +1 -1
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/logs.py +5 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/rebrandly_otel.py +3 -3
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/LICENSE +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/README.md +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/rebrandly_otel.egg-info/SOURCES.txt +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/rebrandly_otel.egg-info/dependency_links.txt +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/rebrandly_otel.egg-info/requires.txt +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/rebrandly_otel.egg-info/top_level.txt +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/setup.cfg +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/__init__.py +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/fastapi_support.py +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/flask_support.py +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/metrics.py +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/otel_utils.py +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/pymysql_instrumentation.py +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/src/traces.py +0 -0
- {rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/tests/test_usage.py +0 -0
|
@@ -73,6 +73,11 @@ class RebrandlyLogger:
|
|
|
73
73
|
# Add OTEL handler without removing existing handlers
|
|
74
74
|
otel_handler = LoggingHandler(logger_provider=self._provider)
|
|
75
75
|
otel_handler.setLevel(logging.INFO)
|
|
76
|
+
|
|
77
|
+
# Add filter to prevent OpenTelemetry's internal logs from being captured
|
|
78
|
+
# This prevents infinite recursion when OTEL tries to log warnings
|
|
79
|
+
otel_handler.addFilter(lambda record: not record.name.startswith('opentelemetry'))
|
|
80
|
+
|
|
76
81
|
root_logger.addHandler(otel_handler)
|
|
77
82
|
|
|
78
83
|
# Create service-specific logger
|
|
@@ -218,7 +218,7 @@ class RebrandlyOTEL:
|
|
|
218
218
|
span.set_status(Status(StatusCode.ERROR, str(e)))
|
|
219
219
|
|
|
220
220
|
# Log error
|
|
221
|
-
|
|
221
|
+
print(f"Lambda execution failed: {e}")
|
|
222
222
|
raise
|
|
223
223
|
|
|
224
224
|
finally:
|
|
@@ -229,10 +229,10 @@ class RebrandlyOTEL:
|
|
|
229
229
|
|
|
230
230
|
# Force flush if enabled
|
|
231
231
|
if auto_flush:
|
|
232
|
-
|
|
232
|
+
print(f"[Rebrandly OTEL] Lambda '{span_name}', flushing...")
|
|
233
233
|
flush_success = self.force_flush(timeout_millis=1000)
|
|
234
234
|
if not flush_success:
|
|
235
|
-
|
|
235
|
+
print("[Rebrandly OTEL] Force flush may not have completed fully")
|
|
236
236
|
|
|
237
237
|
return wrapper
|
|
238
238
|
return decorator
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rebrandly_otel-0.1.34 → rebrandly_otel-0.1.36}/rebrandly_otel.egg-info/dependency_links.txt
RENAMED
|
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
|