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

feat(new-trace): Added logic for red errored rows. #66194

Merged
merged 6 commits into from Mar 4, 2024

Conversation

Abdkhan14
Copy link
Contributor

Screenshot 2024-03-03 at 9 36 22 PM

@Abdkhan14 Abdkhan14 requested a review from JonasBa March 4, 2024 02:46
@Abdkhan14 Abdkhan14 requested a review from a team as a code owner March 4, 2024 02:46
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 4, 2024
@@ -1219,6 +1221,24 @@ export class ParentAutogroupNode extends TraceTreeNode<TraceTree.ChildrenAutogro
}
return this.tail.children;
}

get errored(): boolean {
Copy link
Member

Choose a reason for hiding this comment

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

has_error since this property is static, we should cache it avoid iterating the entire tree. I would probably go with having a TraceTreeNode[] property on the autogrouped node where we push the errored references at the time of autogrouping. This also gives us the ability to show to the user all errors or use that list to iterate and show 🔥 icons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea @JonasBa , I'll move forward with this.

@Abdkhan14 Abdkhan14 enabled auto-merge (squash) March 4, 2024 22:26
@Abdkhan14 Abdkhan14 merged commit a87f6bd into master Mar 4, 2024
39 checks passed
@Abdkhan14 Abdkhan14 deleted the abdk/trace-zoom-ui branch March 4, 2024 22:39
aliu3ntry pushed a commit that referenced this pull request Mar 6, 2024
<img width="1035" alt="Screenshot 2024-03-03 at 9 36 22 PM"
src="https://github.com/getsentry/sentry/assets/60121741/860a6370-b1aa-41dc-b5c8-b62b9778ffa5">

---------

Co-authored-by: Abdullah Khan <abdullahkhan@PG9Y57YDXQ.local>
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants