-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(node): Add request parameter to httpIntegration ignore callbacks
#12930
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(node): Add request parameter to httpIntegration ignore callbacks
#12930
Conversation
| ignoreOutgoingRequests: url => { | ||
| return url.includes('example.com'); | ||
| ignoreOutgoingRequests: (url, request) => { | ||
| if (url.includes('example.com')) { |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization
4c5288e to
6d4c859
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.
The changes in this file look more drastic than they are. I just grouped the two tests (1 existed previously, 1 added new) per ignore hook under a describe block causing the large diff.
size-limit report 📦
|
6d4c859 to
67f4e32
Compare
This PR adds a second parameter (
request) to thehttpIntegration'signoreIncomingRequestsandignoreOutgoingRequestscallbacks. This allows users to not only filter on the URL as previously but on the entire request objects.Docs PR: getsentry/sentry-docs#10735
ref #12913