Skip to content

Commit

Permalink
Merge pull request #392 from MindscapeHQ/kk/rum-694/cwv-auto-track
Browse files Browse the repository at this point in the history
Enable Core Web Vital tracking by default
  • Loading branch information
Krishna Kapadia committed Mar 7, 2021
2 parents ea6a649 + 703f804 commit 043ef47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ _Note: navigator.sendBeacon is used to send RUM payloads when a page is unloadin

`automaticPerformanceCustomTimings` - When enabled Raygun4JS will track each `window.performance.measure` call as a custom timing entry. This enables developers to use a more native API for tracking performance timings. More information about `performance.measure` can be found on [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure).

`trackCoreWebVitals` - When enabled, Raygun4JS will automatically track and report Core Web Vitals. This is enabled by default.

An example raygun4js configuration:

```javascript
Expand Down
4 changes: 2 additions & 2 deletions src/raygun.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var raygunFactory = function(window, $, undefined) {
_disablePulse = true,
_wrapAsynchronousCallbacks = false,
_automaticPerformanceCustomTimings = false,
_trackCoreWebVitals = false,
_trackCoreWebVitals = true,
_customData = {},
_tags = [],
_user,
Expand Down Expand Up @@ -122,7 +122,7 @@ var raygunFactory = function(window, $, undefined) {
_setCookieAsSecure = options.setCookieAsSecure || false;
_captureMissingRequests = options.captureMissingRequests || false;
_automaticPerformanceCustomTimings = options.automaticPerformanceCustomTimings || false;
_trackCoreWebVitals = options.trackCoreWebVitals || false;
_trackCoreWebVitals = options.trackCoreWebVitals || true;

if (options.apiUrl) {
_raygunApiUrl = options.apiUrl;
Expand Down

0 comments on commit 043ef47

Please sign in to comment.