Skip to content

feat(trace-eap-waterfall): Adding support for occurrences #89221

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 7 commits into from
Apr 14, 2025

Conversation

Abdkhan14
Copy link
Contributor

@Abdkhan14 Abdkhan14 commented Apr 9, 2025

Stacked PR fixing typo: #89225

This PR adds support for eap occurences in the trace waterfall. The bulk of the change revolves around adding the new type below, that now come attached to eap spans:

  type EAPOccurrence = {
    event_id: string;
    event_type: 'occurrence';
    issue_id: number;
    level: Level;
    project_id: number;
    project_slug: string;
    start_timestamp: number;
    transaction: string;
    description?: string;
  };
Screenshot 2025-04-09 at 5 26 28 PM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 9, 2025
@Abdkhan14 Abdkhan14 marked this pull request as ready for review April 9, 2025 21:48
@Abdkhan14 Abdkhan14 requested a review from a team as a code owner April 9, 2025 21:48
Comment on lines 87 to 90
} else {
if (o.event_id === event.occurrence?.id) {
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you can combine this into a single } else if {

makeEAPSpan({
event_id: 'eap-span-2',
is_transaction: false,
occurrences: [makeEAPOccurence({event_id: 'eap-occurence-1'})],
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: looks like there are some areas with the occurence typo. Not a big deal, but you might want to global search on occurence and follow up in another pr.

@edwardgou-sentry
Copy link
Contributor

I skipped reviewing changes from the last commit, since that looks like it was merged in from a different PR that was already reviewed.

@Abdkhan14 Abdkhan14 merged commit b254bd0 into master Apr 14, 2025
41 checks passed
@Abdkhan14 Abdkhan14 deleted the abdk/trace-ocurrences branch April 14, 2025 16:21
billyvg pushed a commit that referenced this pull request Apr 14, 2025
Stacked PR fixing typo: #89225

This PR adds support for eap occurences in the trace waterfall. The bulk
of the change revolves around adding the new type below, that now come
attached to eap spans:

```
  type EAPOccurrence = {
    event_id: string;
    event_type: 'occurrence';
    issue_id: number;
    level: Level;
    project_id: number;
    project_slug: string;
    start_timestamp: number;
    transaction: string;
    description?: string;
  };
```



<img width="1256" alt="Screenshot 2025-04-09 at 5 26 28 PM"
src="https://github.com/user-attachments/assets/c506b1ee-55ab-4b76-9f88-7b69e987a287"
/>

---------

Co-authored-by: Abdullah Khan <[email protected]>
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