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

chore(weave): Set tag in sentry error boundary #1650

Merged
merged 4 commits into from
May 23, 2024
Merged

chore(weave): Set tag in sentry error boundary #1650

merged 4 commits into from
May 23, 2024

Conversation

jwlee64
Copy link
Contributor

@jwlee64 jwlee64 commented May 16, 2024

captures weave error boundary errors in sentry and adds a tag to allow for easier navigation in sentry

internal jira https://wandb.atlassian.net/browse/WB-18548

@circle-job-mirror
Copy link

circle-job-mirror bot commented May 16, 2024

@jwlee64 jwlee64 changed the title test setting tag in sentry with button chore(weave): Set tag in sentry error boundary May 16, 2024
@jwlee64 jwlee64 marked this pull request as ready for review May 23, 2024 05:54
@jwlee64 jwlee64 requested a review from a team as a code owner May 23, 2024 05:54
@@ -25,6 +26,12 @@ export class ErrorBoundary extends Component<Props, State> {
'weave_panel_error_boundary',
weaveErrorToDDPayload(error)
);

Sentry.captureException(error, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you happen to have a link to sentry docs for this API? I was wondering whether the tag value had to be a string and I couldn't find them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://docs.sentry.io/platforms/javascript/enriching-events/tags/

"Tags are key/value string pairs"

Let me find the other one rq

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jwlee64 jwlee64 merged commit 6e565ae into master May 23, 2024
24 checks passed
@jwlee64 jwlee64 deleted the sentry-test2 branch May 23, 2024 23:52
@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants