fix: sending app trace data to other app trace provider (#6931)

This commit is contained in:
takatost
2024-08-04 00:05:51 +08:00
committed by GitHub
parent 70283f5b9f
commit bcd7c8e921
2 changed files with 7 additions and 25 deletions

View File

@@ -22,10 +22,8 @@ def process_trace_tasks(tasks_data):
trace_info = tasks_data.get('trace_info')
app_id = tasks_data.get('app_id')
conversation_id = tasks_data.get('conversation_id')
message_id = tasks_data.get('message_id')
trace_info_type = tasks_data.get('trace_info_type')
trace_instance = OpsTraceManager.get_ops_trace_instance(app_id, conversation_id, message_id)
trace_instance = OpsTraceManager.get_ops_trace_instance(app_id)
if trace_info.get('message_data'):
trace_info['message_data'] = Message.from_dict(data=trace_info['message_data'])