Added support for version, whitelistUrls, ignoreUrls, ignoreErrors, and other disable options #717
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Added options to
hashRoutes,version,disableRUM,disableSession,disableSPA,disableAjaxMonitoring,disableErrorTracking,disableTransaction,whitelistUrls,ignoreUrls,ignoreErrorsandreportUnhandledRejections.Are there breaking changes in this PR?
We have removed allowedDomains and renamed the option to whitelistUrls.
Testing
Testing completed successfully in local env via the options flag works as expected.
Any background context you want to provide?
We have added a few options which have been asked by our customers.
Is there parity with the server-side/android/iOS integration components (if applicable)?
No
Does this require a new integration setting? If so, please explain how the new setting works
Yes,
hashRoutes- Atatus removes the hash from the URL and if you're using hash based routes you can set this option to true. It is of type boolean and defaults to false.version- Helps you in filtering the errors from the dashboard using the version. It is of type string " ".disableRUM- You can disable RUM metrics by setting this option to true. It is of type boolean and defaults to false.disableSession- You can set this option to true if you want to disable reporting of session traces. It is of type boolean and defaults to false.disableSPA- Set this option to true to disable SPA monitoring. It is of type boolean and defaults to false.disableAjaxMonitoring- Disable AJAX monitoring by setting this option to true. It is of type boolean and defaults to false.disableErrorTracking- Set disableErrorTracking to true to disable error tracking. It is of type boolean and defaults to false.disableTransaction- You can disable the collection of transactions by setting the option to true. It is of type boolean and defaults to false.whitelistUrls- Captures the page views, AJAX and JS Errors from the given domains or URLs and ignores insights from all other URLs. It is of type array [].ignoreUrls- Ignore capturing insights from a given set of domains or URLs. It is of type array [].ignoreErrors- It is an array of unwanted error messages to be filtered out before being sent to Atatus as either array of regular expressions or strings. Type array [].reportUnhandledRejections- This will allow disabling or enabling the unhandled promise rejection errors. By default, it is set to true. It is of type boolean and defaults to true.Links to helpful docs and other external resources
With the help of the documentation below, you can easily set up the options.
https://docs.atatus.com/docs/browser-monitoring/customize-agent.html