Skip to content

Commit

Permalink
added agent to the messages trace
Browse files Browse the repository at this point in the history
  • Loading branch information
abdollahis2 authored and abdollahis2 committed Jul 8, 2024
1 parent e96bd52 commit 73961c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ def message(req, key):
#message_to_merge =utils.get_safe(data,"message")
message_to_merge = data
agent_name = str(mesg.actor.agent.name)
span.set_attribute("agent", agent_name)
logger.info("Running pre_merge_process for agent %s with %s" % (agent_name, len(res)))
utils.pre_merge_process(message_to_merge,key, agent_name, inforesid)
if mesg.data and 'results' in mesg.data and mesg.data['results'] != None and len(mesg.data['results']) > 0:
Expand Down

0 comments on commit 73961c8

Please sign in to comment.