-
Notifications
You must be signed in to change notification settings - Fork 57
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: leverage errors types for tracing #5365
feat: leverage errors types for tracing #5365
Conversation
4962a23
to
4f29043
Compare
This pull request adds or modifies JavaScript ( |
const { | ||
errorInfo: { location: { packageName } = {} }, | ||
message, | ||
title, | ||
type, | ||
} = fullErrorInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference I double checked and seems like the errorInfo
is always populated:
const cancellationAttributes = { | ||
'build.cancellation.title': title, | ||
'build.cancellation.message': message, | ||
'build.cancellation.packageName': packageName, | ||
} | ||
addEventToActiveSpan('build.cancelled', cancellationAttributes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just adding a mental note that we'll want to test this out once it lands in prod 👌
🎉 Thanks for submitting a pull request! 🎉
Summary
Fixes https://linear.app/netlify/issue/COM-91/leverage-error-types-in-netlifybuild