You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.NET for Android - Fragment Lifecycle Tracking #3965
We're taking advantage of Sentry's automatic activity lifecycle tracking, which provides us with the TTID for activities. However, our app mostly uses Fragments for screen transitions. Sentry for Android has a fragment lifecycle package for tracking fragments, but this package isn't currently utilized in the Sentry .NET Android Binding.
We would love to see the fragment tracking capabilities be exposed for .NET for Android apps that can be just enabled in the options during init, similar to how we can do this for Activities.
Until then, we can manually track these transactions, but would be great to get it out of the box.
We may not have capacity to prioritise this in the short to medium term, but we'll keep it in the backlog and if other users express interest in this too then we can review. Alternatively, if you're comfortable making a PR then contributions are always welcome!
if other users express interest in this too then we can review.
Yes please. I'm currently manually adding breadcrumbs to my fragments to track their creation, automatically tracking their lifecycle would be much better.
Just following up on this: This is about passing the options from C# to Java? Or is there any technical limitation why we cannot enable the integration?
Activity
jamescrosswell commentedon Feb 13, 2025
Thanks @justinwojo - it's a good suggestion.
We may not have capacity to prioritise this in the short to medium term, but we'll keep it in the backlog and if other users express interest in this too then we can review. Alternatively, if you're comfortable making a PR then contributions are always welcome!
dave-murray commentedon Feb 18, 2025
Yes please. I'm currently manually adding breadcrumbs to my fragments to track their creation, automatically tracking their lifecycle would be much better.
bitsandfoxes commentedon Feb 20, 2025
Just following up on this: This is about passing the options from C# to Java? Or is there any technical limitation why we cannot enable the integration?
bitsandfoxes commentedon Feb 20, 2025
I think I see, this is its own library that's not part of the package (yet)!
bruno-garcia commentedon Feb 20, 2025
@dave-murray is this something you could contribute? We're happy to review and maintain it after that, shipping updates etc.
jamescrosswell commentedon May 18, 2026
I think this is one of the potential solutions for:
So I've added a link/reference to this issue from there. Will close this as a duplicate.