question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to redact the crash stacktrace before sending?

See original GitHub issue

We have found that some SocketTimeoutExceptions may contain source IP addresses in their messages. Due to the company policy, we need to ensure that no Personal Identifiable Information (PII) is being collected by any of our services or that we block any access to it from our end.

We’ve taken care of redacting error logs and exception stacktraces that would end up in an ACRA report when logging silent exceptions, but I’m wondering if it’s possible to redact the stacktrace of a crash log at all? I’m aware that:

  • it’s unlikely we’d let the app crash with a SocketTimeoutException
  • unlikely that many other exceptions print out IP addresses in their messages
  • the same crash log would end up in Play console, unredacted

But we’d like to take some proactive steps to prove we’re doing anything we can to avoid collecting PII where possible.

Would redacting the crash stacktrace be a case of implementing a Collector extension containing code similar to the StacktraceCollector but just making sure the stacktrace is redacted?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
F43nd1rcommented, Feb 8, 2021
0reactions
martynamaroncommented, Feb 15, 2021

Remember you need to use kapt instead of apt when using kotlin.

Right, that was indeed the problem, I’m getting the REDACTED_STACK_TRACE field as expected now, thanks!

I’ll try with post processing though, to redact the actual stack trace as you suggested 🙌🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stack trace method names redacted
I have users email me stack traces when my app crashes on their device. Prior to iOS 6 they looked like this:
Read more >
Error handling - Apollo GraphQL Docs
If you do want error information sent to Studio, you can send every error, or you can modify or redact specific errors before...
Read more >
crash iOS 14 - Unbalanced call to … | Apple Developer Forums
I have received this report through firebase analytics(Crashlytics) and I have ... frame about the function of my app on the top of...
Read more >
Reading a device stack trace - MSDN - Microsoft
Can anyone help me make sense of this? Works ok in simulator, but crashes on the device when navigating back and forth. Debugging...
Read more >
See exceptions in Run window? - Rider Support | JetBrains
In IntelliJ IDEA, when an application crashes, it outputs the stack trace to the run window so you can quickly and easily see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found