Skip to content

Conversation

@arielsilvestri
Copy link
Contributor

@arielsilvestri arielsilvestri commented Dec 6, 2022

What does this PR do?

Added options to hashRoutes, version, disableRUM, disableSession, disableSPA, disableAjaxMonitoring, disableErrorTracking, disableTransaction, whitelistUrls, ignoreUrls, ignoreErrors and reportUnhandledRejections.

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

…nd other disable options (#705)

* Add support for version, whitelistUrls, ignoreUrls, ignoreErrors, and disable options

* Removed allowed domains option.

Co-authored-by: Fizer Khan <fizer@atatus.com>
@arielsilvestri arielsilvestri changed the title Added support for version, whitelistUrls, ignoreUrls, ignoreErrors, a… Added support for version, whitelistUrls, ignoreUrls, ignoreErrors, and other disable options Dec 6, 2022
@arielsilvestri arielsilvestri merged commit 4bcce25 into master Dec 6, 2022
@arielsilvestri arielsilvestri deleted the atatus-new-feature-support branch December 6, 2022 17:34
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.

3 participants