This page contains an overview of the information available in the App Performance Monitoring sections of the Instabug Docs for Android apps. Show Suggest Edits Try out Instabug APM If you are already using Instabug, but APM isn't included in your current plan, please reach out to us at [email protected]. We would love to enable a custom trial for you and help you set it up. APM is supported starting Android SDK version 10.0.0. Supported Metrics APM Footprint We're taking several measures to make sure Instabug APM is resource-friendly. To minimize its impact on the device's battery and data consumption:
The default 6-hour interval can be bypassed by enabling Debug Mode which you can use to visualize your data with almost no delay; this can be very useful in case you're still evaluating our SDK as well as help debug issues with your integration.
Why APM? In the field, your app goes through a wide range of different user scenarios, cellular networks, signal conditions, device types, as well as locations. This is when unexpected performance issues happen. Instabug App Performance Monitoring (APM) is built to provide you with insights about how your app is performing on your end-users' devices and hence shaping their experience. Datadog Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application’s individual users. The Datadog Android SDK supports Android 4.4 (API level 19)+ and Android TV. Setup
Declare the SDK as a dependencyDeclare dd-sdk-android and the Gradle plugin as a dependency in your application module’s 7 file.
To ensure the safety of your data, you must use a client token. If you used only Datadog API keys to configure the 8 library, they would be exposed client-side in the Android application’s APK byte code.For more information about setting up a client token, see the Client Token documentation. In the initialization snippet, set an environment name, service name, and version number. In the examples below, 9 specifies the variant of the application that generates data. For more information, see Using Tags.See 0 to enable automatic tracking of all your views (activities, fragments, and more), 1 to add GDPR compliance for your EU users, and other configuration options to initialize the library.
0The initialization credentials require your application’s variant name and uses the value of 2. With the variant, RUM can match the errors reported from your application with the mapping files uploaded by the Gradle plugin. If you do not have variants, the credentials use an empty string.The Gradle plugin automatically uploads the appropriate ProGuard 3 file at build time so you can view deobfuscated RUM error stack traces. For more information, see the Track Android Errors.Initialize the RUM Monitor and InterceptorConfigure and register the RUM Monitor. You only need to do it once in your application’s 4 method. 1 2To track your OkHttp requests as resources, add the provided Interceptor: 3 4This records each request processed by the 5 as a resource in RUM, with all the relevant information automatically filled (URL, method, status code, and error). Only the network requests that started when a view is active are tracked. To track requests when your application is in the background, create a view manually.Note: If you also use multiple Interceptors, call 6 first.You can also add an 7 for the 5 to automatically track resource timing for third-party providers and network requests.Track background eventsYou can track events such as crashes and network requests when your application is in the background (for example, no active view is available). Add the following snippet during initialization in your Datadog configuration: 5 5Tracking background events may lead to additional sessions, which can impact billing. For questions, contact Datadog support. |