以追踪格式可视化数据
您可以通过配置以下内容来以追踪格式可视化数据
选择 Trace 作为 Format
确保您包含以下字段
spanID
- string (字符串)parentSpanID
- string (字符串)traceID
- string (字符串)startTime
- timestamp (时间戳)duration
- number (数字)serviceName
- string (字符串)operationName
- string (字符串)
例如,对于以下 CSV 数据
spanID,parentSpanID,traceID,startTime,duration,serviceName,operationName
s1,,t1,1,10000,router,foo
s2,s1,t1,2,6000,frontend,foo
s3,s1,t1,4,4000,backend,foo
s4,s2,t1,3,1000,parsing,foo
s5,s2,t1,3,1500,formatting,foo
s6,s3,t2,5,2200,db,foo
以下 UQL 查询生成一个追踪视图
parse-csv
| extend "startTime"=unixtime_seconds_todatetime("startTime")