エラーイベントの送信
- API を使用してエラーイベントを報告します。
try { //Force creating an exception float f = (5 / 0); } catch (Throwable t) { Instrumentation.addErrorEvent(t, Instrumentation.Severity.ALERT); } - すべてのイベントを EUM サーバに送信します。これはブロッキングコールです。アプリケーションは、別のスレッドで送信できます。
Instrumentation.sendAllEvents();