sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Measure content provider and application class creation using AppComponentFactory

Open markushi opened this issue 1 year ago • 0 comments

Description

Similar to papa we want to not only measure the .onCreate() timings, but rather the whole initialization, including class loading and any static init timings.

This is only available on Android P and above. More docs about AppCompontentFactory can be found here. It's usually registered via AndroidManifest.xml:

<application
    android:appComponentFactory="com.example.MyAppComponentFactory" />

Things to consider:

  • Could we auto install a SentryAppComponentFactory factory?
  • How to deal with user-defined factories?
  • How to deal with it pre P?

markushi avatar Jan 18 '24 09:01 markushi