rebrandly-otel 0.1.24__py3-none-any.whl → 0.1.25__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 rebrandly-otel might be problematic. Click here for more details.
- rebrandly_otel/logs.py +12 -12
- {rebrandly_otel-0.1.24.dist-info → rebrandly_otel-0.1.25.dist-info}/METADATA +1 -1
- {rebrandly_otel-0.1.24.dist-info → rebrandly_otel-0.1.25.dist-info}/RECORD +6 -6
- {rebrandly_otel-0.1.24.dist-info → rebrandly_otel-0.1.25.dist-info}/WHEEL +0 -0
- {rebrandly_otel-0.1.24.dist-info → rebrandly_otel-0.1.25.dist-info}/licenses/LICENSE +0 -0
- {rebrandly_otel-0.1.24.dist-info → rebrandly_otel-0.1.25.dist-info}/top_level.txt +0 -0
rebrandly_otel/logs.py
CHANGED
|
@@ -51,20 +51,20 @@ class RebrandlyLogger:
|
|
|
51
51
|
|
|
52
52
|
def _configure_standard_logging(self):
|
|
53
53
|
"""Configure standard Python logging with OTEL handler."""
|
|
54
|
-
# Set up basic configuration
|
|
55
|
-
logging.basicConfig(
|
|
56
|
-
level=logging.INFO,
|
|
57
|
-
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
58
|
-
stream=sys.stdout,
|
|
59
|
-
force=True
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
# Add OTEL handler
|
|
63
|
-
otel_handler = LoggingHandler(logger_provider=self._provider)
|
|
64
|
-
otel_handler.setLevel(logging.INFO)
|
|
65
|
-
|
|
66
54
|
# Get root logger
|
|
67
55
|
root_logger = logging.getLogger()
|
|
56
|
+
|
|
57
|
+
# Only configure basic logging if no handlers exist (not in Lambda)
|
|
58
|
+
if not root_logger.handlers:
|
|
59
|
+
logging.basicConfig(
|
|
60
|
+
level=logging.INFO,
|
|
61
|
+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
62
|
+
stream=sys.stdout
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# Add OTEL handler without removing existing handlers
|
|
66
|
+
otel_handler = LoggingHandler(logger_provider=self._provider)
|
|
67
|
+
otel_handler.setLevel(logging.INFO)
|
|
68
68
|
root_logger.addHandler(otel_handler)
|
|
69
69
|
|
|
70
70
|
# Create service-specific logger
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
rebrandly_otel/__init__.py,sha256=dEcTvHbhNNp0XD_7jojxeHXNa1QDCI9HxayeICaK_WY,491
|
|
2
2
|
rebrandly_otel/fastapi_support.py,sha256=RuBBZJuzr3osBDrkHZ0oQPV70pmvnqxTfBBDVFBFQlo,8019
|
|
3
3
|
rebrandly_otel/flask_support.py,sha256=cUVMGTjN6N8xZD4Zyng2LRWhNj62C5nmTH91SnYBp2A,6072
|
|
4
|
-
rebrandly_otel/logs.py,sha256=
|
|
4
|
+
rebrandly_otel/logs.py,sha256=tU8YGL2hcYgM64rDf13owHTr7ooGc2z25TQ9qve7euY,3898
|
|
5
5
|
rebrandly_otel/metrics.py,sha256=Tf21BwSVK6eLPG2hz55gNpwdPq85uqAx4bttLO6rnq8,7542
|
|
6
6
|
rebrandly_otel/otel_utils.py,sha256=bP6Xhel4g7gbQWzCUlABWJfBSJaveKU1fhSOngcfzc4,3577
|
|
7
7
|
rebrandly_otel/pymysql_instrumentation.py,sha256=4MNIfqNQlMtOcmYLy5bq8FP0KoEw72bcZZqBdG6xupM,5955
|
|
8
8
|
rebrandly_otel/rebrandly_otel.py,sha256=wT1GiOQQMZl2sVG8MGJ9qM9gx_zRwS7U5oAe77RbJdk,21618
|
|
9
9
|
rebrandly_otel/traces.py,sha256=JY_3RWbzpUxzEx3GqTVgggsyA2DB4oR-zDftIFFJha4,7174
|
|
10
|
-
rebrandly_otel-0.1.
|
|
11
|
-
rebrandly_otel-0.1.
|
|
12
|
-
rebrandly_otel-0.1.
|
|
13
|
-
rebrandly_otel-0.1.
|
|
14
|
-
rebrandly_otel-0.1.
|
|
10
|
+
rebrandly_otel-0.1.25.dist-info/licenses/LICENSE,sha256=KMXHvTwP62S2q-SG7CFfMU_09rUwxiqlM0izaYGdcgY,1103
|
|
11
|
+
rebrandly_otel-0.1.25.dist-info/METADATA,sha256=tB49FI27YHZN6oMmOdClUYgna5wQNxjGZRl-Oi_yBB8,14538
|
|
12
|
+
rebrandly_otel-0.1.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
rebrandly_otel-0.1.25.dist-info/top_level.txt,sha256=26PSC1gjVUl8tTH5QfKbFevjVV4E2yojoukEfiTScvM,15
|
|
14
|
+
rebrandly_otel-0.1.25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|