Advanced Setup

Version tracking

Raygun4Android supports tracking the version of your application in a few different ways:

  1. Set the versionName attribute on <manifest> in your AndroidManifest.xml to be of the form x.x.x.x, where x is a positive integer
  2. Set the version in the overloaded init method when initialising RaygunClient: public static void init(Application application, String apiKey, String version)
  3. Use the static setVersion method on RaygunClient class

The applications’s version will then be tracked in Real User Monitoring allowing you to see how many users are using each version of your application. For more information read about the Versions tab in Real User Monitoring.


Tags

Tags can be added to your RUM data by using the following method:

RaygunClient.setTags(List tags)

Views timing events

Once Real User Monitoring is enabled, the Raygun client will automatically report information about views. You can filter out the reporting of view information by view name using the following snippet:

RaygunClient.ignoreViews(new String[]{ "MainActivity" });

Network timing events

Once Real User Monitoring is enabled, the Raygun client will automatically report the performance of network calls made with the following methods:

  • java.net.HttpURLConnection
  • javax.net.ssl.HttpsURLConnection

If you don’t wish the performance of certain network requests to be logged, you can filter them out by URL.

RaygunClient.ignoreURLs(new String[]{ "raygun.com" });

The provider is open source and available at the Raygun4Android repository.