otel-utils 0.7.0__py3-none-any.whl → 0.7.1__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 otel-utils might be problematic. Click here for more details.
otel_utils/logging.py
CHANGED
|
@@ -9,8 +9,10 @@ from opentelemetry import trace
|
|
|
9
9
|
|
|
10
10
|
class JsonFormatter(logging.Formatter):
|
|
11
11
|
def format(self, record):
|
|
12
|
+
print('record', record)
|
|
12
13
|
log_record = {"timestamp": datetime.utcnow().isoformat(), "level": record.levelname, "service": record.name,
|
|
13
14
|
"message": record.getMessage()}
|
|
15
|
+
print('log_record', log_record)
|
|
14
16
|
|
|
15
17
|
ignored_attrs = {
|
|
16
18
|
'args', 'exc_info', 'exc_text', 'msg', 'message', 'levelname',
|
|
@@ -37,6 +39,8 @@ class JsonFormatter(logging.Formatter):
|
|
|
37
39
|
elif value is not None and value != '':
|
|
38
40
|
log_record[key] = value
|
|
39
41
|
|
|
42
|
+
print('log_record after', log_record)
|
|
43
|
+
|
|
40
44
|
return json.dumps(log_record)
|
|
41
45
|
|
|
42
46
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
otel_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
otel_utils/configurator.py,sha256=scrT4K0Y4o9DmYQs_xuToxnH1Q8fkSCQGk5jsSNQUXU,7612
|
|
3
|
-
otel_utils/logging.py,sha256=
|
|
3
|
+
otel_utils/logging.py,sha256=MHviLFGk3ZFJ-k0exs_4974eGKIL-qckTskGeNsujMk,5664
|
|
4
4
|
otel_utils/metrics.py,sha256=XD-t9V3peZJs97hN2hR2rwJKrcCJHqx2cldNOTCpzoA,3664
|
|
5
5
|
otel_utils/tracing.py,sha256=PtowQ7MvYld_xJlVAV4pBQuDBQIqPeP1FQPrzgZx9_Q,2625
|
|
6
|
-
otel_utils-0.7.
|
|
7
|
-
otel_utils-0.7.
|
|
8
|
-
otel_utils-0.7.
|
|
6
|
+
otel_utils-0.7.1.dist-info/METADATA,sha256=9vqwxz5GVkGivtUdRL4RRyKYuCRh4yJ9a9-WWJ0hCGc,5278
|
|
7
|
+
otel_utils-0.7.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
8
|
+
otel_utils-0.7.1.dist-info/RECORD,,
|
|
File without changes
|