From fe4734ba6e44b7225830ce583938b072c34d586d Mon Sep 17 00:00:00 2001 From: ilee2u Date: Thu, 19 Dec 2024 15:01:35 -0500 Subject: [PATCH] chore: Refactor logging format for Datadog pipeline integration --- program_intent_engagement/settings/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program_intent_engagement/settings/utils.py b/program_intent_engagement/settings/utils.py index 9436613..106794b 100644 --- a/program_intent_engagement/settings/utils.py +++ b/program_intent_engagement/settings/utils.py @@ -39,8 +39,8 @@ def get_logger_config(logging_env="no_env", 'disable_existing_loggers': False, 'formatters': { 'standard': { - 'format': '%(asctime)s %(levelname)s %(process)d ' - '[%(name)s] [user %(userid)s] [ip %(remoteip)s] %(filename)s:%(lineno)d - %(message)s', + 'format': '%(asctime)s %(levelname)s [%(name)s] [%(filename)s:%(lineno)d] ' + '[dd.trace_id=%(dd.trace_id)s dd.span_id=%(dd.span_id)s] - %(message)s', }, 'syslog_format': {'format': syslog_format}, 'raw': {'format': '%(message)s'},