Skip to content

Commit ea638c7

Browse files
committed
@matusdrobuliak66 keep 'log_' prefix
1 parent ae68ed9 commit ea638c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/service-library/src/servicelib/logging_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ def config_all_loggers(
144144
"| log_source=%(name)s:%(funcName)s(%(lineno)d) "
145145
"| log_uid=%(log_uid)s "
146146
"| log_oec=%(log_oec)s"
147-
"| trace_id=%(otelTraceID)s "
148-
"| span_id=%(otelSpanID)s "
149-
"| resource.service.name=%(otelServiceName)s "
150-
"| trace_sampled=%(otelTraceSampled)s] "
147+
"| log_trace_id=%(otelTraceID)s "
148+
"| log_span_id=%(otelSpanID)s "
149+
"| log_resource.service.name=%(otelServiceName)s "
150+
"| log_trace_sampled=%(otelTraceSampled)s] "
151151
"| log_msg=%(message)s"
152152
)
153153
setup_log_tracing(tracing_settings=tracing_settings)
@@ -156,7 +156,7 @@ def config_all_loggers(
156156
if tracing_settings is not None:
157157
fmt = (
158158
"%(levelname)s: [%(asctime)s/%(processName)s] "
159-
"[trace_id=%(otelTraceID)s span_id=%(otelSpanID)s resource.service.name=%(otelServiceName)s trace_sampled=%(otelTraceSampled)s] "
159+
"[log_trace_id=%(otelTraceID)s log_span_id=%(otelSpanID)s log_resource.service.name=%(otelServiceName)s log_trace_sampled=%(otelTraceSampled)s] "
160160
"[%(name)s:%(funcName)s(%(lineno)d)] - %(message)s"
161161
)
162162

0 commit comments

Comments
 (0)