-
Notifications
You must be signed in to change notification settings - Fork 256
Create http errors plugin #2639
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
base: integration/http-errors
Are you sure you want to change the base?
Create http errors plugin #2639
Conversation
2a197de to
bbe0d77
Compare
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a 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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
08dfb6f to
b7538b7
Compare
07a0b8a to
ec3e639
Compare
5f68f2f to
feee16d
Compare
162ba47 to
f1cad91
Compare
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.
Pull request overview
Copilot reviewed 30 out of 39 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 29 out of 38 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const requestData = trackedRequests.get(this) | ||
| if (requestData) { | ||
| requestData.headers = requestData.headers || {} | ||
| requestData.headers[String(header)] = String(value) |
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.
each time you call setRequestHeader() after the first time you call it, the value is actually appended to the end of the existing header value, but here we're overwriting it
Goal
This PR implements a new plugin to automatically capture and report HTTP errors from web applications. The plugin monitors HTTP requests (both fetch and XHR) and creates structured error reports when responses return configured error status codes.
Design
@bugsnag/request-trackerto intercept HTTP requests and responsesredactedKeysconfigurationChangeset
Testing