Skip to content

fix(performance-quick-trace-query): Using Sentry.captureException to inspect trace endpoint response. #58167

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 4 commits into from
Oct 16, 2023

Conversation

Abdkhan14
Copy link
Contributor

Addresses issues: issue1 and issue2.

Prevents issue details page from failing. When error is triggered, we just display a link to the trace view without the navigator nodes.

@Abdkhan14 Abdkhan14 requested a review from a team as a code owner October 16, 2023 16:20
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 16, 2023
@@ -73,6 +74,10 @@ export default function QuickTraceQuery({children, event, ...props}: QueryProps)
organization
);

const scope = new Sentry.Scope();
const traceErrorMsg = 'Trace endpoints returning non-array in response';
Copy link
Member

Choose a reason for hiding this comment

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

Prob don't need a var here

Copy link
Contributor Author

@Abdkhan14 Abdkhan14 Oct 16, 2023

Choose a reason for hiding this comment

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

Will be getting rid of it all once I have some answers

traceTransactions,
traceFullResults,
});
Sentry.captureException(new Error(traceErrorMsg), scope);
Copy link
Member

Choose a reason for hiding this comment

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

If you're capturing this as an exception vs. a message it's fine (I usually just do message for exploratory work), but just watch the frontend errors once this is out, might trip an alert

@Abdkhan14 Abdkhan14 enabled auto-merge (squash) October 16, 2023 18:07
@Abdkhan14 Abdkhan14 merged commit f18a2cd into master Oct 16, 2023
@Abdkhan14 Abdkhan14 deleted the abdk/fix/tracequery-errors branch October 16, 2023 18:16
@sentry-io
Copy link

sentry-io bot commented Oct 16, 2023

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: Trace endpoints returning non-array in response <object>.children(app/utils/performance/quickTr... View Issue
  • ‼️ Error: Updated: Trace endpoints returning non-array in response <object>.children(app/utils/performance/quickTr... View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2023
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.

2 participants