sentry-java
sentry-java copied to clipboard
Auto-Instrument onResume in Activity transactions
Description
We could create spans for each of the callbacks to better surface the performance of each method if they involve some heavy computations (similar to how sentry-cocoa does it for viewDidLoad, viewDidAppear and so on).
Android API 29 and above have new callbacks in the AcitivtyLifecycleCallbacks class (onActivityPreCreated/onActivityPostCreated and friends), so we could utilize them when implementing it.
Let's start small and use the existing API 29+ callbacks in the first iteration. And it could be a good chance to refactor our ActivityLifecycleIntegration.
Let's schedule it for the next quarter @kahest