-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix: filter out honeybadger source code from stack trace #982
Conversation
packages/core/src/util.ts
Outdated
continue | ||
} | ||
|
||
if (frame.file || frame.file === '<anonymous>') { |
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.
What's the scenario where a frame's file is <Anonymous>
? THat's missing in the (very good) explanation.
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.
Your comment saved me! I missed a negation (it should be if (!frame.file ...
).
To answer your question, this came up from the fault I was debugging. I don't know when it happens, but I know it can happen. That's why I came up with the [not-so-straight-forward] approach to ignore these frames if they happen to be in-between our source code. Otherwise, the algorithm would stop here and would not see that the next frame is still honeybadger source code.
See attached image.
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.
Minor questions / comments but looking good!
9fa8df1
to
98a2b50
Compare
@BethanyBerkowitz All review feedback applied. I've just requested another round of review :) |
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.
🚀 🌔 🪐
Status
READY
Description
Fixes: #979
Todos