Google Analytics v2 for Android 中丢失了异常堆栈跟踪? [英] Exception stack trace lost in Google Analytics v2 for Android?

查看:25
本文介绍了Google Analytics v2 for Android 中丢失了异常堆栈跟踪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

堆栈跟踪对于解决问题至关重要.在 Android 中,您可以在 Play 商店控制台中找到不错的报告.除非您使用 Google Analytics V2.在这种情况下,分析似乎吞并了例外情况.更糟糕的是,Analytics 似乎只记录异常的第一行,从而丢失了堆栈跟踪.至少在错误报告中没有显示.

The stack trace is crucial to fix problems. In Android you can find nice reports in the Play store console. Unless you use Google Analytics V2. In this case Analytics seems to swallow the exceptions. Worse, Analytics seems to log only the first line of the exception and thus loosing the stacktrace. At least it is not shown in the error report.

这是我们的analytics.xml的一个片段:

Here's a snip from our analytics.xml:

<!-- Enable automatic exception tracking -->
<bool name="ga_reportUncaughtExceptions">true</bool>
<bool name="ga_debug">false</bool>

另见此处:https://developers.google.com/analytics/devguides/collection/android/v2/exceptions#easytracker

那么,我们的应用程序中是否有遗漏/错误的地方?

So, could there be something missing/wrong in our app?

推荐答案

正如之前的回答 (user857661) 所说,请参阅 Google Analytics 文档关于创建新的 ExceptionReporter,或查看 我的博文 关于如何将自定义 ExceptionParser 分配到默认处理程序中.

As previous answer (user857661) says, see the Google Analytics docs on creating a new ExceptionReporter, or see my blog post on how to assign a custom ExceptionParser into the default handler.

这篇关于Google Analytics v2 for Android 中丢失了异常堆栈跟踪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆