Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tempo: Embed flame graph in span details #77537

Merged
merged 19 commits into from
Nov 23, 2023

Conversation

joey-grafana
Copy link
Contributor

@joey-grafana joey-grafana commented Nov 2, 2023

What is this feature?

Embeds a flame graph in Tempo's span details (if one exists).

Why do we need this feature?

So users can visualise profiles in their span details.

Who is this feature for?

Tempo/Pyroscope users.

Special notes for your reviewer:
You can test with the Pyroscope docker-compose.
Need to enable the feature toggle tracesEmbeddedFlameGraph.

Screenshot 2023-11-08 at 15 50 52

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@joey-grafana joey-grafana marked this pull request as ready for review November 2, 2023 10:44
@joey-grafana joey-grafana requested review from grafanabot and a team as code owners November 2, 2023 10:44
@joey-grafana joey-grafana requested review from joshhunt and JoaoSilvaGrafana and removed request for a team November 2, 2023 10:44
Copy link
Contributor

@ifrost ifrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explore.tsx LGTM 👍

@ifrost ifrost requested a review from a team November 10, 2023 08:08
@aocenas
Copy link
Member

aocenas commented Nov 10, 2023

I think this looks good but I would like to merge this behind different feature flag than the traceToProfiles. I think that one can be removed quite soon as I don't think there is that much to feedback. With this I would like to see some internal feedback first on some designing and for example if we should or should not add some functionality to the embedded flamegraph like focusing or together with the collapsing pr to collapse/expand groups.

So I think it would be better to have another feature flag so we don't have to wait with the linking itself, while we can merge this and keep iterating on this.

@joey-grafana joey-grafana merged commit 4f46fb4 into main Nov 23, 2023
21 checks passed
@joey-grafana joey-grafana deleted the joey/tempo-embedded-flamegraph branch November 23, 2023 13:36
eleijonmarck pushed a commit that referenced this pull request Nov 27, 2023
* Embed flame graph

* Update test

* Update test

* Use toggle

* Update test

* Add tests

* Use const

* Cleanup

* Update profile tag

* Move flame graph out of tags, remove request and other cleanup + tests

* Update test

* Set flame graph by profile id and simplify logic

* Cleanup and redrawListView

* Create/use feature toggle
@aangelisc aangelisc modified the milestones: 10.3.x, 10.2.3 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants