-
Notifications
You must be signed in to change notification settings - Fork 237
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
[FEATURE REQUEST] Ability to stop requests being tracked for array of domains #1446
Comments
I've tagged this as an enhancement to effectively pre-configure a set of URL's as excluded from reporting dependencies. The code that performs this check is here ApplicationInsights-JS/extensions/applicationinsights-dependencies-js/src/ajax.ts Line 545 in 05a1f41
Once a URL is added (excluding the querystring) it will always be excluded even when follow up requests are not tagged, what this means is that during any initialization / first request to the URL that you want to exclude you can tag the request as such and then everywhere else in your code will automatically exclude the url. Feel free to review the code and potentially provide a PR to add the capability to auto populate the internal _disabledUrls map with the configured values (I would expect this to be added to the ICorrelationConfig config etc) |
Same issue with #1472 Is there a way to disableAjaxTracking for specific ajax requests |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is your feature request related to a problem? Please describe.
We use feature flags in our SPA and the feature flag's service that we use polls for changes to these feature flags every 30 seconds. This is cluttering up our dependency logs because they're all filled with these polling requests.
Describe the solution you'd like
It would be nice to be able to stop these from being sent by filtering out their domain, so that our dependency logs are only filled with our internal application calls. Something like this in the config:
Describe alternatives you've considered
Our feature flag platform also supports SSEs, but falls back to polling if the SSE initialization fails, which happens fairly often.
Additional context
N/A
The text was updated successfully, but these errors were encountered: