Skip to content

Commit

Permalink
perf: add url to error reports
Browse files Browse the repository at this point in the history
  • Loading branch information
gtupak committed May 19, 2023
1 parent c2a6484 commit 1f00879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ArcxAnalyticsSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ export class ArcxAnalyticsSdk {
identityId: this.identityId,
apiKey: this.apiKey,
...(error && { error: error }),
url: window.location.href,
},
})
}
Expand Down
2 changes: 2 additions & 0 deletions test/ArcxAnalyticsSdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ describe('(unit) ArcxAnalyticsSdk', () => {
identityId: TEST_IDENTITY,
msg: errorMsg,
apiKey: TEST_API_KEY,
url: TEST_JSDOM_URL,
},
})
})
Expand All @@ -475,6 +476,7 @@ describe('(unit) ArcxAnalyticsSdk', () => {
identityId: TEST_IDENTITY,
msg: errorMsg,
apiKey: TEST_API_KEY,
url: TEST_JSDOM_URL,
},
})
})
Expand Down

0 comments on commit 1f00879

Please sign in to comment.