Skip to content

fix(insights): fix profile link not generating properly on EAP #93706

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

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

edwardgou-sentry
Copy link
Contributor

This change fixes several issues with the profile link generation in the insights span samples panel:

  1. Updates link generation to use existing utility functions instead (ie generateProfileFlamechartRoute and generateContinuousProfileFlamechartRouteWithQuery)
  2. On the EAP dataset (ie spans), samples are returned with profile.id attributes instead of profile_id. Updates the link generation to check for either case.
  3. Some samples come with a continuous profile instead (ie profiler.id). Updates to handle these scenarios as well.

@edwardgou-sentry edwardgou-sentry marked this pull request as ready for review June 17, 2025 16:13
@edwardgou-sentry edwardgou-sentry requested a review from a team as a code owner June 17, 2025 16:13
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 17, 2025
@edwardgou-sentry edwardgou-sentry merged commit 3363f16 into master Jun 17, 2025
46 checks passed
@edwardgou-sentry edwardgou-sentry deleted the egou/fix/insights-samples-profiles branch June 17, 2025 17:11
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
This change fixes several issues with the profile link generation in the
insights span samples panel:
1. Updates link generation to use existing utility functions instead (ie
`generateProfileFlamechartRoute` and
`generateContinuousProfileFlamechartRouteWithQuery`)
2. On the EAP dataset (ie `spans`), samples are returned with
`profile.id` attributes instead of `profile_id`. Updates the link
generation to check for either case.
3. Some samples come with a continuous profile instead (ie
`profiler.id`). Updates to handle these scenarios as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants