-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More open Event model #2060
More open Event model #2060
Conversation
Android notifier sizes
Generated by 🚫 Danger |
dbbee19
to
3bf0021
Compare
bugsnag-android-core/src/main/java/com/bugsnag/android/Error.java
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/Error.java
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/ErrorInternal.kt
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/ErrorInternal.kt
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/ErrorInternal.kt
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/Event.java
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/EventInternal.kt
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/EventInternal.kt
Outdated
Show resolved
Hide resolved
bugsnag-android-core/src/main/java/com/bugsnag/android/EventInternal.kt
Outdated
Show resolved
Hide resolved
examples/sdk-app-example/app/src/main/java/com/example/bugsnag/android/BaseCrashyActivity.kt
Outdated
Show resolved
Hide resolved
391a72c
to
5586b35
Compare
9677b14
to
334449d
Compare
… handle unlikely nulls, and not need to be marked @nullable
…ce it is unlikely to be used, and dramatically complicates the API
…esult in an empty `Error` instead of a spurious error based on the current stacktrace
bd7f670
to
3b874f9
Compare
bugsnag-android-core/src/main/java/com/bugsnag/android/Stacktrace.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think calling them events throughout is better than the word report as that matches our docs. But don't feel strongly if you have a better reason.
@@ -75,6 +75,35 @@ public List<Error> getErrors() { | |||
return impl.getErrors(); | |||
} | |||
|
|||
/** | |||
* Add a new error to this report and return its Error data. The new Error will appear at the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Add a new error to this report and return its Error data. The new Error will appear at the | |
* Add a new error to this event and return its Error data. The new Error will appear at the |
} | ||
|
||
/** | ||
* Add a new empty {@link ErrorType#ANDROID android} error to this report and return its Error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Add a new empty {@link ErrorType#ANDROID android} error to this report and return its Error | |
* Add a new empty {@link ErrorType#ANDROID android} event to this report and return its Error |
} | ||
|
||
/** | ||
* Add a new empty error to this report and return its Error data. The new Error will appear |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Add a new empty error to this report and return its Error data. The new Error will appear | |
* Add a new empty error to this event and return its Error data. The new Error will appear |
* and name. This can be used to augment the report with thread data that would not be picked | ||
* up as part of a normal report being generated (for example: native threads managed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* and name. This can be used to augment the report with thread data that would not be picked | |
* up as part of a normal report being generated (for example: native threads managed | |
* and name. This can be used to augment the event with thread data that would not be picked | |
* up as part of a normal event being generated (for example: native threads managed |
* and name. This can be used to augment the report with thread data that would not be picked | ||
* up as part of a normal report being generated (for example: native threads managed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* and name. This can be used to augment the report with thread data that would not be picked | |
* up as part of a normal report being generated (for example: native threads managed | |
* and name. This can be used to augment the event with thread data that would not be picked | |
* up as part of a normal event being generated (for example: native threads managed |
CHANGELOG.md
Outdated
@@ -6,6 +6,8 @@ | |||
|
|||
* Include additional Intent information for Activity.onCreate breadcrumbs (action, categories, type, flags, id, extra keys) | |||
[#2057](https://github.com/bugsnag/bugsnag-android/pull/2057) | |||
* New APIs allowing new `Error`s, `Thread`s, and `Stackframe`s to be added to error reports (`Event`s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* New APIs allowing new `Error`s, `Thread`s, and `Stackframe`s to be added to error reports (`Event`s) | |
* New APIs allowing new `Error`s, `Thread`s, and `Stackframe`s to be added to `Event`s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ing report stacktraces
bbe0c08
to
08526ea
Compare
Goal
Open up more Event model APIs, that users can add new Errors, Threads, and leave breadcrumbs at an
Event
level.Changeset
The
Event
class includes new methods to:Thread
object to theEvent
Error
object to theEvent
Event
level breadcrumbsThe
Error
andThread
classes include new methods to addStackframe
s.Testing
New unit tests added.