[BUG] v6.4 Trace Completion API 调用返回500
Closed this issue · 1 comments
Search before asking
- I had searched in the issues and found no similar feature requirement.
DeepFlow Component
Server
What you expected to happen
根据官网文档调用Trace Completion API( https://deepflow.io/docs/zh/integration/output/query/trace-completion/)时报错
调用接口:http://${deepflow_server_node_ip}:${port}/v1/stats/querier/tracing-completion-by-external-app-spans。
返回500错误码和如下报错信息。
{
"OPT_STATUS": "INTERNAL_SERVER_ERROR",
"DESCRIPTION": "'str' object has no attribute 'signal_source'"
}
deepflow-app打印的错误日志如下:
'str' object has no attribute 'signal_source'Traceback (most recent call last): File "/root/app/common/utils.py", line 105, in wrapper response = await function(*args, **kwargs) File "/root/app/application/application.py", line 41, in l7_flow_app_tracing status, response, failed_regions = await TracingCompletion( File "/root/app/application/tracing_completion.py", line 38, in query rst = await self.trace_l7_flow(time_filter=time_filter, File "/root/app/application/tracing_completion.py", line 416, in trace_l7_flow set_all_relate(dataframe_flowmetas, related_map, network_delay_us) File "/root/app/application/l7_flow_tracing.py", line 631, in set_all_relate if ti.signal_source != L7_FLOW_SIGNAL_SOURCE_OTEL:AttributeError: 'str' object has no attribute 'signal_source'
How to reproduce
No response
DeepFlow version
deepflow-server v6.4
deepflow-agent v6.4
deepflow-app v6.4
DeepFlow agent list
No response
Kubernetes CNI
No response
Operation-System/Kernel version
No response
Anything else
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
@YuanChuan11 plz try the latest version