Skip to content
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 network breadcrumbs being left for requests to the minidumps endpoint #1597

Merged
merged 2 commits into from
Nov 24, 2021

Conversation

imjoehaines
Copy link
Contributor

Goal

We should ignore requests to Bugsnag URLs, but the logic for this didn't take into account the api_key query string parameter that the minidumps endpoint uses

We now remove the query string before checking if a URL should be ignored

@github-actions
Copy link

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 41.54 kB 12.79 kB
After 41.54 kB 12.79 kB
± No change No change

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-net-breadcrumbs/net-breadcrumbs.js 100%
(+0%)
90%
(+2.5%)
100%
(+0%)
100%
(+0%)

Total:

Lines Branches Functions Statements
82.05%(+0%) 71.86%(+0.03%) 83.26%(+0%) 81.1%(+0%)

Generated by 🚫 dangerJS against d9952ca

@imjoehaines imjoehaines merged commit 59557ef into next Nov 24, 2021
@imjoehaines imjoehaines deleted the fix-network-breadcrumbs-for-minidumps branch November 24, 2021 16:16
@imjoehaines imjoehaines mentioned this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants