Skip to content

Commit

Permalink
feat(report): add AnrLinkError and NdkLinkError to metadata (bugsnag#…
Browse files Browse the repository at this point in the history
  • Loading branch information
YYChen01988 authored Aug 16, 2024
1 parent 4a0bde0 commit 2f5a951
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## TBD

### Enhancements

* Add original error class and message to metadata for link errors loading BugSnag libraries
[#2070](https://github.com/bugsnag/bugsnag-android/pull/2070)

## 6.7.0 (2024-08-08)

### Enhancements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ internal class AnrPlugin : Plugin {
private fun performOneTimeSetup(client: Client) {
val isLoaded = libraryLoader.loadLibrary("bugsnag-plugin-android-anr", client) {
val error = it.errors[0]
it.addMetadata("LinkError", "errorClass", error.errorClass)
it.addMetadata("LinkError", "errorMessage", error.errorMessage)

error.errorClass = "AnrLinkError"
error.errorMessage = LOAD_ERR_MSG
true
Expand Down

0 comments on commit 2f5a951

Please sign in to comment.