getsentry / sentry-java

A Sentry SDK for Java, Android and other JVM languages.
https://docs.sentry.io/
MIT License
1.14k stars 433 forks source link

[EPIC] Android Profiling Improvements and Hardening #3679

Open markushi opened 2 weeks ago

markushi commented 2 weeks ago

Description

This is a meta issue to collect reported issues around Android Profiling and how we can improve profiling overall.

Refer to the individual issues to learn more about the status.

### Likely root cause: Android Tracer
- [ ] https://github.com/getsentry/sentry-java/issues/2604
- [ ] https://github.com/getsentry/sentry-java/issues/3561 -> https://issuetracker.google.com/issues/362293861
- [ ] https://github.com/getsentry/sentry-java/issues/3653 -> https://issuetracker.google.com/issues/361129298
### Likely root cause: Sentry SDK
stefanosiano commented 4 days ago

I'm thinking about some workarounds that we can do, until it gets fixed (if it gets fixed in older Android versions) We can add another flag to guard "dangerous" profiles, and here is some idea for such detection:

If you have any other workaround, feel free to add a comment with it The best would be create a custom profiler, but that's a big effort thing