Jaeger like UI of trace span of Opentelemetry

32 Views Asked by At

I have json data from backend like this :

Field Name              Type
traceSpanData           Array
    name                String
    context             Object
        traceId         String
        spanId          String
    parentId            String
    startTime           String
    endTime             String
    attributes          Object
        http.route      String

And with these data, I need to make trace span graph like the following picture.

enter image description here

How do I do it? I am using vue 3, compostion api ( script setup ), I have tried to make Gantt chart with chartjs, but I cannot customize the y axis label, ( in the picture, the labels on y axis are in a tree like structured) Any idea what can I do to make a chart like the picture?

1

There are 1 best solutions below

0
Yuri Shkuro On

Not sure if your intention is to make an independent UI or just visualize the data, but for the latter you can convert your data shape into OpenTelemetry JSON format and upload it into Jaeger UI (supported in the most recent release).