Skip to content

如果数据为空,点击火焰视图会直接跳到空白页面 #4

@zhouhansheng

Description

@zhouhansheng

https://github.com/antgroup/flow-insight/blob/main/sdk/flow_insight/engine.py#L676-L680

            return FlameTree(
                root=FlameTreeNode(
                    span_id="_main", id="_main", start_time=0, end_time=-1, children=[]
                )
            )

这里火焰图返回的结构是FlameTree,但是前端接收的是:
https://github.com/antgroup/flow-insight/blob/main/frontend/src/components/Flame.tsx#L151
const convertNode = (node: FlameTreeNode): FlameNode => {
这里接收的是FlameTreeNode结构,导致node里面数据都是undefined,进而导致点击火焰视图会跳到空白页面。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions