Browser agent and SPA API
- addPageAction
- Reports a Browser PageAction event to New Relic One along with a name and optional attributes.
- addRelease
- Adds a unique name and ID to identify releases with multiple JavaScript bundles on the same page.
- addToTrace
- Adds a JavaScript object with a custom name, start time, etc. to an in-progress session trace.
- finished
- Records an additional time point as "finished" in a session trace, and sends the event to New Relic One.
- noticeError
- Identifies a browser error without disrupting your app's operations.
- setCustomAttribute
- Adds a user-defined attribute name and value to subsequent events on the page.
- setErrorHandler
- Allows selective ignoring of known errors that the Browser agent captures.
- setPageViewName
- Groups page views to help URL structure or to capture the URL's routing information.
- SPA: actionText
- Sets the text value of the HTML element that was clicked to start a browser interaction.
- SPA: createTracer
- Times sub-components of a SPA interaction separately, including wait time and JS execution time.
- SPA: end
- Ends the SPA interaction at the current time.
- SPA: getContext
- Stores values for the current SPA interaction asynchronously in Browser.
- SPA: ignore
- Overrides other SPA save() calls; ignores an interaction so it is not saved or sent to New Relic.
- SPA: interaction
- Returns a new API object that is bound to the current SPA interaction.
- SPA: onEnd
- Change the values associated with a SPA interaction before the interaction is saved .
- SPA: save
- Ensures a SPA browser interaction will be saved when it ends.
- SPA: setAttribute
- Adds a custom SPA attribute only to the current interaction in Browser.
- SPA: setCurrentRouteName
- Gives SPA routes more accurate names than default names. Monitors specific routes rather than by default grouping.
- SPA: setName
- Sets the name and trigger of a SPA's browser interaction that is not a route change or URL change.