Skip to content

.NET for Android - Fragment Lifecycle Tracking #3965

Closed as not planned
Closed as not planned

Description

@justinwojo

Problem Statement

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.

Solution Brainstorm

No response

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Feb 13, 2025
  2. jamescrosswell commented on Feb 13, 2025

    @jamescrosswell
    Collaborator

    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!

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 13, 2025
  4. dave-murray commented on Feb 18, 2025

    @dave-murray

    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.

  5. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Feb 18, 2025
  6. bitsandfoxes commented on Feb 20, 2025

    @bitsandfoxes
    Contributor

    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?

  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 20, 2025
  8. bitsandfoxes commented on Feb 20, 2025

    @bitsandfoxes
    Contributor

    I think I see, this is its own library that's not part of the package (yet)!

  9. bruno-garcia commented on Feb 20, 2025

    @bruno-garcia
    Member

    @dave-murray is this something you could contribute? We're happy to review and maintain it after that, shipping updates etc.

  10. added
    .NET
    on Aug 6, 2025
  11. jamescrosswell commented on May 18, 2026

    @jamescrosswell
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETImprovementState: UnreproducibleState: Won't Do

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions