简体   繁体   English

针对Android的Flurry错误报告

[英]Flurry Error Reporting for Android

Is there anyone using Flurry to generate reports for uncaught exceptions that could post some sample code on how to do this? 是否有人使用Flurry为未捕获的异常生成报告,可以发布一些示例代码来说明如何执行此操作?

I don't see any example via Flurry themselves, and though I've seen code samples of custom exception reporters, I haven't seen a simple example of how to implement the basic error reporting just using Flurry. 我没有通过Flurry自己看到任何示例,虽然我已经看到了自定义异常报告的代码示例,但我还没有看到如何使用Flurry实现基本错误报告的简单示例。

Thanks. 谢谢。

This is all good feedback. 这都是很好的反馈。 We're looking into adding full stack traces for error reporting which we'll hopefully see in our next major SDK release. 我们正在考虑为错误报告添加完整的堆栈跟踪,我们希望在下一个主要的SDK版本中看到这些跟踪。 We'll also look at filtering by device model. 我们还将研究按设备模型过滤。

In the meantime we've added a new REST API for exporting your error reports if you want to do your own analysis. 与此同时,如果您想进行自己的分析,我们已添加了一个新的REST API,用于导出错误报告。 If you need help using it you can just contact our support or message me. 如果您需要帮助,可以联系我们的支持或给我发消息。

Sean / CTO / Flurry, Inc. Sean / CTO / Flurry,Inc。

Flurry does it automatically (if you have it running). Flurry自动完成(如果你运行它)。 However, the error reporting is lame. 但是,错误报告是蹩脚的。 They only catch the message w/o giving you the stack trace, so you may end up seeing (for example) that people are getting lots of NullPointerException s, but you won't have any idea where, or how, they're happening. 他们只捕获没有给你堆栈跟踪的消息,所以你可能最终看到(例如)人们获得了大量的NullPointerException ,但你不知道他们在哪里或如何发生。 If you try to do it yourself with the FlurryAgent.onEvent() method you'll quickly discover that they limit you to 255 characters. 如果您尝试使用FlurryAgent.onEvent()方法FlurryAgent.onEvent()您将很快发现它们将您限制为255个字符。

If you need detailed error reporting it really is better to roll your own right now. 如果您需要详细的错误报告,现在最好自己动手。

I wasn't going to post this initially, but since it sounds like Flurry's error reporting sucks, you should check android-remote-stacktrace . 我最初不会发布这个,但因为听起来像Flurry的错误报告很糟糕,你应该检查android-remote-stacktrace It sends the stack trace to a url, which you can use to redirect it to an e-mail or just gather it on the server. 它将堆栈跟踪发送到URL,您可以使用该URL将其重定向到电子邮件或只是将其收集到服务器上。

Since people are posting alternatives for getting stack traces, I'll recommend ACRA. 由于人们发布了获取堆栈跟踪的替代方案,我建议使用ACRA。 ACRA can send the stack trace to a spreadsheet on google drive/docs. ACRA可以将堆栈跟踪发送到google drive / docs上的电子表格。 Or you can also have it send to your server if you wish too. 或者,如果您愿意,也可以将其发送到您的服务器。 By default it also includes phone model, android version, memory of device, and other data too. 默认情况下,它还包括手机型号,Android版本,设备内存和其他数据。

我没有将它用于未捕获的异常,但你可以捕获它然后发送它乱七八糟。

I am using bugsense for error reports. 我正在使用bugsense进行错误报告。 It catches full stack trace when an uncaught exception happens and also gives some useful information about the device - OS version, you app's version, is WiFi available on the device, etc. You can add custom messages and tags for specific events. 当未捕获的异常发生时,它会捕获完整的堆栈跟踪,并提供有关设备的一些有用信息 - 操作系统版本,应用程序的版本,设备上的WiFi等等。您可以为特定事件添加自定义消息和标记。

I've already fixed a couple crashes in my app thanks to it. 由于它,我已经在我的应用程序中修复了几次崩溃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM