Context
I tried to add FragmentLifecycleIntegration to my app, and I quickly reached default breadcrumbs limit. Almost all events came from FragmentLifecycleIntegration which decreased number of visible user interactions to last 2-3 screens before crash.
I could increase breadcrumbs limit, but I concluded I'd prefer see less events logged by FragmentLifecycleIntegration.
Proposal
The simples thing I can suggest is to introduce api like:
FragmentLifecycleIntegration(
application = application,
loggedLifecycleEvents = setOf(Lifecycle.State.RESUMED, Lifecycle.State.PAUSED),
)
which would skip events non-listed in new parameter.
Context
I tried to add
FragmentLifecycleIntegrationto my app, and I quickly reached default breadcrumbs limit. Almost all events came fromFragmentLifecycleIntegrationwhich decreased number of visible user interactions to last 2-3 screens before crash.I could increase breadcrumbs limit, but I concluded I'd prefer see less events logged by
FragmentLifecycleIntegration.Proposal
The simples thing I can suggest is to introduce api like:
which would skip events non-listed in new parameter.