jaegertracing / jaeger-ui

Web UI for Jaeger
http://jaegertracing.io/
Apache License 2.0
1.1k stars 470 forks source link

[Feature]: export Traces as call flow visualization #1189

Open Rajpratik71 opened 1 year ago

Rajpratik71 commented 1 year ago

Requirement

As Jaeger provides detailed traces of services and requests which is very similar to "Call flows" which we build while designing an Application / Service HLD (High-Level Design) or LLD (Low-Level Design),

So, I was thinking it will be a very useful feature to get the call flow of Applications / Services by exporting their traces.

This will be helpful for new users to understand and document the implementation of any applications by seeing and exporting their traces as "Call flows".

Problem

Jaeger is not blocking but the requested feature will help a lot.

Proposal

No response

Open questions

No response

yurishkuro commented 1 year ago

Please provide a visual example

Rajpratik71 commented 1 year ago

e.g. A user called a API Endpoint " /user-management/v1/organizations/search"

Which goes through the below flow

Rest Layer ---> Service Layer --> Database layer

Which on a high level looks like below

image

but in detail, the trace has every detail like which method was called, then which data query/method was used to get data , which is similar to what we show while building an Application / Service HLD (High-Level Design) or LLD (Low-Level Design)

i.e. why I am thinking it will be helpful if we can export traces to get a ready-to-use diagram or call flow of API / Service.

image

A sample call flow

image

yurishkuro commented 1 year ago

Don't think I follow. The UML sequence diagram is functionally equivalent to the Gantt chart viz that Jaeger shows by default. Service and operation are displayed on the left in Jaeger, otherwise it shows the same information.

If you're asking to show calls internal to the service, then this is more of a question of instrumentation, if you create more spans in the service they will al show in Jaeger in the same color.