Skip to content

Commit 2f0d34a

Browse files
authored
Merge pull request #14 from talis/ELE-3421-include-url-in-errors
ELE-3421 Include URL in NewRelic error reporting
2 parents 1e6557f + a88eefb commit 2f0d34a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.2.1 (2020-10-23)
2+
3+
Improvement:
4+
5+
- Log the browser URL when logging errors and exceptions
6+
17
## 2.1.6 (2019-12-2)
28

39
Improvement:

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app-logger-angular",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"main": "./js/logging.js",
55
"description": "Client side logging sent to the server",
66
"repository": {

js/logging.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ loggingModule.factory(
5454
}
5555

5656
if (LOGGING_CONFIG.FORWARD_TO_NEWRELIC && $window.NREUM && $window.NREUM.noticeError) {
57-
$window.NREUM.noticeError(exception);
57+
$window.NREUM.noticeError(exception, { url: $window.location.href });
5858
}
5959

6060
// check if the config says we should log to the remote, and also if a remote endpoint was specified
@@ -149,7 +149,7 @@ loggingModule.factory(
149149
}
150150

151151
if (sendToNewRelic && $window.NREUM && $window.NREUM.noticeError) {
152-
$window.NREUM.noticeError(message, {desc: desc});
152+
$window.NREUM.noticeError(message, { desc: desc, url: $window.location.href });
153153
}
154154

155155
// check if the config says we should log to the remote, and also if a remote endpoint was specified

0 commit comments

Comments
 (0)