Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUM support for Fragments #71

Closed
macrivello opened this issue Feb 27, 2020 · 1 comment
Closed

RUM support for Fragments #71

macrivello opened this issue Feb 27, 2020 · 1 comment
Assignees
Milestone

Comments

@macrivello
Copy link

Is there proper support for fragments in RUM?
What is the solution for apps that use a single activity?

I'm currently using public static void sendRUMTimingEvent(RaygunRUMEventType eventType, String name, long milliseconds) but there doesn't seem to be a way to track viewing time.

In the RUM web console, I am able to see the different fragments loaded (by sending a RUMTimingEvent with ACTIVITY_LOADED event type), but viewing time is not correct. As far as I can tell the 'Viewing Time' is calculated as the duration between the current RUM Timing Event and the next Timing Event. Since network requests are also tracked as RUM Timing Events, Fragments that make a network requests report false viewing times (i.e. time from Fragment load to next network event, not the time until next Fragment event).

Screen Shot 2020-02-27 at 1 09 46 PM

@miquelbeltran
Copy link
Contributor

Hello! A couple of updates regarding this issue:

  • We have implemented support for Fragments in RUM in 5c846a1, this is pending to be released. It supports automatically any Fragments in an androidx.fragment.app.FragmentActivity or Activities that inherit from it.
  • The issue regarding "time spent on page" goes beyond the support for Fragments, and it is due to how Raygun servers calculate that value. This is something that we are discussing internally to see how it can be improved.

I will close this issue as RUM Fragments have been implemented, but move the discussion regarding "Time spent on page" to a new ticket with more information: #135

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

No branches or pull requests

3 participants