From ea638c78f81768d807b12acfaad63f6334df7d36 Mon Sep 17 00:00:00 2001 From: Mads Bisgaard Date: Wed, 4 Dec 2024 07:31:45 +0100 Subject: [PATCH] @matusdrobuliak66 keep 'log_' prefix --- .../service-library/src/servicelib/logging_utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/service-library/src/servicelib/logging_utils.py b/packages/service-library/src/servicelib/logging_utils.py index cb33a7d8691..0db4b2febd3 100644 --- a/packages/service-library/src/servicelib/logging_utils.py +++ b/packages/service-library/src/servicelib/logging_utils.py @@ -144,10 +144,10 @@ def config_all_loggers( "| log_source=%(name)s:%(funcName)s(%(lineno)d) " "| log_uid=%(log_uid)s " "| log_oec=%(log_oec)s" - "| trace_id=%(otelTraceID)s " - "| span_id=%(otelSpanID)s " - "| resource.service.name=%(otelServiceName)s " - "| trace_sampled=%(otelTraceSampled)s] " + "| log_trace_id=%(otelTraceID)s " + "| log_span_id=%(otelSpanID)s " + "| log_resource.service.name=%(otelServiceName)s " + "| log_trace_sampled=%(otelTraceSampled)s] " "| log_msg=%(message)s" ) setup_log_tracing(tracing_settings=tracing_settings) @@ -156,7 +156,7 @@ def config_all_loggers( if tracing_settings is not None: fmt = ( "%(levelname)s: [%(asctime)s/%(processName)s] " - "[trace_id=%(otelTraceID)s span_id=%(otelSpanID)s resource.service.name=%(otelServiceName)s trace_sampled=%(otelTraceSampled)s] " + "[log_trace_id=%(otelTraceID)s log_span_id=%(otelSpanID)s log_resource.service.name=%(otelServiceName)s log_trace_sampled=%(otelTraceSampled)s] " "[%(name)s:%(funcName)s(%(lineno)d)] - %(message)s" )