-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
UPLOAD-1409 - Enhanced error reporting #1665
base: master
Are you sure you want to change the base?
Conversation
- adding extra information into custom.* property
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 a couple of small changes requested.
@vojtech-cerveny I think we may need to be a bit more specific with which |
Well, I would say that I am OK with all data except Because we send different objects into this function let disconnectedErrProps = {
utc: actionUtils.getUtc(utc),
code: 'E_HID_CONNECTION',
version: version,
loggedInUser: loggedInUser,
userEmail: userEmail,
userName: name,
os: os,
device: driverId,
}; and let uploadErrProps = {
details: err.message,
utc: getUtc(utc),
name: err.name || 'Uncaught or API POST error',
step: err.step || null,
datasetId: err.datasetId || null,
requestTrace: err.requestTrace || null,
sessionTrace: err.sessionTrace || null,
code: err.code || errCode,
version: version,
data: recs,
loggedInUser: loggedInUser,
userEmail: userEmail,
userName: name,
os: os,
device: driverId,
}; so my solution would be to just delete props.data, WDYT? const extra = { ...props };
delete extra.data; |
Yeah, I think that should be fine. I just did a test with Tandem where I made it fail during uploading to the backend and |
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.
LGTM! 🚢
This pull request includes changes to enhance error reporting to Rollbar and update
Enhancements to error reporting:
app/actions/utils.js
: Modified thesendToRollbar
function to handle the case whenrollbar
is not defined, and improved the error reporting by merging additional properties into the reported error.By merging
...props
to extra, application send also data included inuploadErrProps
During testing it, I tried to upload data without connecting device and I got this error on rollbar.
And as you can see, ticket has new params - custom params added by this PR.