Repository navigation
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I currently use the Flame Graph and static Graph view in the Aspire Dashboard. The Flame Graph is excellent for detailed performance analysis. However, it can be difficult to get a quick high-level overview of how a specific request propagated through the system — especially when trying to understand which resources interacted with each other and in what sequence.
In large, distributed systems, it's important to quickly grasp the "big picture": which resources were involved in a trace, how they were connected, and the overall flow without digging into low-level spans. This makes it easier to debug inter-resource issues and communicate the system’s behavior visually — for example, when creating tickets or discussing bugs/features with other developers or product owners.
This is especially true when trying to explain complex interactions to team members who may not be familiar with the detailed performance metrics but need to understand the request flow.
This is a common challenge when working with distributed systems, where understanding the sequence of resource interactions is crucial for debugging and system design discussions.
This is not just about performance, but about understanding the structure and timing of resource interactions
— a request-centric view of how components interacted, rather than a detailed performance breakdown.
Describe the solution you'd like
I’d like to propose a high-level graph view focused on a single trace, showing how resources interacted over time. The goal is not to replace the Flame Graph, but to provide a simpler top-level visualization. This view would:
- Represent resources as nodes in a graph.
- Show directional edges based on which resource called which, in the order of the trace timeline.
- Only include high-level interactions (e.g.
ResourceA → ResourceB → ResourceC & ResourceD). - Optionally show timestamps or relative timing to illustrate when each call occurred.
- Allow users to switch into the Flame Graph for deeper investigation if desired.
- Be optimized for readability and screenshots to help with debugging sessions, documentation, or ticket creation.
This would serve as a top-level summary of trace flow, making it easier to explain and reason about request behavior across resources.
Additional context
This feature could greatly enhance team collaboration by providing a shared, intuitive visualization of service interactions. It would simplify error analysis and communication about complex flows, focusing on the most relevant connections and their timing. Since the necessary trace data is already available, integration with existing dashboards should be straightforward. A clear, simplified graph would also support onboarding new team members and documenting system behavior effectively.
Activity
davidfowl commentedon Jul 17, 2025
Can you draw what you have in mind?
davidfowl commentedon Jul 17, 2025
When you saw flame graph what do you mean? The trace view?
davidfowl commentedon Jul 17, 2025
Is this just enhancing the graph view with trace information?
En3Tho commentedon Jul 17, 2025
I think what he possibly wants is an additional visualization of trace view in a form of graph (like graph view or mixed)
So, page would look like:
A list of traces (trace view) like we currently have (which I guess is called "Flame graph" here)
traces ...
trace1...
trace2...
--- Delimiter ---
And below that there is a graph view with arrows and stuff like the following
And when you click on span/trace that arrow gets highlighted?
Or you could click on service and highlight all outgoing/incoming requests etc
Or filter out services you don't want to see etc
davidfowl commentedon Jul 17, 2025
So this?
Is it for a single trace or overall interactions.
willdean commentedon Jul 17, 2025
And there was me thinking there was a whole section of Aspire I'd missed!
jomaxso commentedon Jul 17, 2025
The "resource communication graph" would visually represent the interactions and data flow between the various resources involved in a trace. Each node in the graph would correspond to a resource (e.g., API, database, cache, microservice), and edges would indicate the communication paths, annotated with timing information. The sum of the timings for each edge would represent the total time taken for that interaction, providing insights into performance and potential bottlenecks.
This graph would not focus on individual requests or responses but rather on the overall communication patterns and timings between resources. It would help in understanding how different components of the system interact, the latency involved in each interaction, and where optimizations can be made.
The following example illustrates how a trace could be represented as a resource communication graph:
The timing information would be the sum of all interactions of the previous node in the graph, regardless of the number of requests to or responses from that node. This means that if the API made multiple calls to the database, the total time for that interaction would be aggregated into the edge connecting the API and the database nodes.
The graph would also include the total time taken for the entire trace, which would be the sum of the timings for all edges in the graph. For example, if the total time for the trace was 3.38 seconds, this would be indicated at the start node (S) of the graph.
In a more complex scenario, the graph would include multiple nodes and edges, representing various resources and their interactions.
The resource communication graph would be particularly useful for visualizing complex interactions in microservices architectures, where multiple services, databases, and caches are involved. It would allow developers and system architects to see the big picture of how resources communicate, making it easier to identify inefficiencies or areas for improvement.
jomaxso commentedon Jul 17, 2025
David Fowler (@davidfowl) yes I meant the trace view
jomaxso commentedon Jul 17, 2025
This would be for the overall interaction, for example beginning with an initial API call and tracing the flow through all subsequent resources, such as databases and other services, involved in the process.
jomaxso commentedon Jul 17, 2025
David Fowler (@davidfowl) regarding the issue #8760 it could be that the visualization of the graph will change.
jomaxso commentedon Jul 17, 2025
No, it's actually the other way around. The trace is being enhanced with a graph view, not just the graph view being enhanced with trace information.
davidfowl commentedon Jul 17, 2025
cc James Newton-King (@JamesNK) for thoughts