Skip to content

Commit f764beb

Browse files
committed
docs: adding references to New Relic docs
Adding some helpful links to the internal NewRelicLoggingService functions.
1 parent 1275423 commit f764beb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/logging/NewRelicLoggingService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function sendPageAction(actionName, message, customAttributes) {
2626
console.log(actionName, message, customAttributes); // eslint-disable-line
2727
}
2828
if (window && typeof window.newrelic !== 'undefined') {
29+
// https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/addpageaction/
2930
window.newrelic.addPageAction(actionName, { message, ...customAttributes });
3031
}
3132
}
@@ -35,6 +36,7 @@ function sendError(error, customAttributes) {
3536
console.error(error, customAttributes); // eslint-disable-line
3637
}
3738
if (window && typeof window.newrelic !== 'undefined') {
39+
// https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/noticeerror/
3840
window.newrelic.noticeError(fixErrorLength(error), customAttributes);
3941
}
4042
}

0 commit comments

Comments
 (0)