From 41f8d4b5a89dbc5178f9c77427474e9df86cba3f Mon Sep 17 00:00:00 2001 From: Williams Date: Mon, 30 Sep 2024 15:26:13 -0400 Subject: [PATCH] Adding PK for logging purposes for Appraiser --- tr_sys/tr_ars/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tr_sys/tr_ars/utils.py b/tr_sys/tr_ars/utils.py index f8b2f34..71bd6ea 100644 --- a/tr_sys/tr_ars/utils.py +++ b/tr_sys/tr_ars/utils.py @@ -978,6 +978,9 @@ def scrub_null_attributes(data): def appraise(mesg, data, agent_name,retry_counter=0): headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} json_data = json.dumps(data) + + #adding PK for Max's logs + json_data["pk"]=str(mesg.id) logging.info('sending data for agent: %s to APPRAISER URL: %s' % (agent_name, APPRAISER_URL)) with tracer.start_as_current_span("get_appraisal") as span: try: