异常堆栈跟踪在谷歌Analytics(分析)V2为Android失去了什么? [英] Exception stack trace lost in Google Analytics v2 for Android?

查看:250
本文介绍了异常堆栈跟踪在谷歌Analytics(分析)V2为Android失去了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

堆栈跟踪关键的是要解决问题。在Android中,你可以找到在Play商店控制台好的报告。除非你使用谷歌Analytics(分析)V2。在这种情况下,分析似乎吞下例外。更糟的是,分析似乎记录异常的唯一的第一行,从而失去栈跟踪。至少它不会在错误报告中显示。

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>

另请参见这里:<一href="https://developers.google.com/analytics/devguides/collection/android/v2/exceptions#easytracker">https://developers.google.com/analytics/devguides/collection/android/v2/exceptions#easytracker

那么,莫不是在我们的应用程序缺了点什么/错?

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

推荐答案

由于previous答案(user857661)说,有关创建一个新的<一个谷歌Analytics文档href="https://developers.google.com/analytics/devguides/collection/android/v2/exceptions#exception-reporter">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.

这篇关于异常堆栈跟踪在谷歌Analytics(分析)V2为Android失去了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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