-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add method for track Error #51
base: master
Are you sure you want to change the base?
Conversation
...c/main/kotlin/com/github/hanabi1224/flutter_appcenter_bundle/FlutterAppcenterBundlePlugin.kt
Outdated
Show resolved
Hide resolved
await _methodChannel.invokeMethod('trackError', <String, dynamic>{ | ||
'message': message, | ||
'properties': properties, | ||
// Support `ErrorAttachmentLog`? |
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.
do we think support ErrorAttachmentLog
is necessary?
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.
Wonder if it might be relevant to support passing stack trace from Dart?
runZonedGuarded<Future<void>>(() async {
runApp(App());
}, (error, stackTrace) => AppCenter.trackErrorAsync(error, stackTrace));
"trackError" -> { | ||
val message = call.argument<String>("message") | ||
val properties = call.argument<Map<String, String>>("properties") | ||
Crashes.trackError(Exception(message), properties, null) |
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.
wonder if Flutter stack could be passed somehow?
throwable.setStackTrace(new StackTraceElement[]{
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.
final Trace trace = Trace.parseVM(stack.toString()).terse;
final List<Map<String, String>> elements = <Map<String, String>>[];
Still needs work.
Opening for discussion.
#26