- Essentials
- In The App
- Infrastructure
- Application Performance
- Log Management
- Security Platform
- UX Monitoring
- Administration
Real User Monitoring allows you to monitor web views and eliminate blind spots in your hybrid Android and Android TV applications.
You can perform the following:
Set up the web page you want rendered on your mobile Android and Android TV application with the RUM Browser SDK first. For more information, see RUM Browser Monitoring.
Download the latest version of the RUM Android SDK.
Edit your existing Android SDK setup from RUM Android Monitoring.
Add tracking for web views with the following example:
val configuration = Configuration.Builder(
rumEnabled = true
)
.useSite()
.trackInteractions()
.setWebViewTrackingHosts(hosts)
.trackLongTasks(durationThreshold)
.useViewTrackingStrategy(strategy)
.build()
val credentials = Credentials(<CLIENT_TOKEN>, <ENV_NAME>, <APP_VARIANT_NAME>, <APPLICATION_ID>)
Datadog.initialize(this, credentials, configuration, trackingConsent)
}
}
Configure the DatadogEventBridge
for web views you want to track in your mobile Android application using DatadogEventBridge.setup(webView)
in the configuration file when you initialize the RUM Android SDK.
Your web views appear in the RUM Explorer with associated service
and source
attributes. The service
attribute indicates the web component the web view is generated from, and the source
attribute denotes the mobile application’s platform, such as Android.
Filter on your Android and Android TV applications, and click a session. A side panel with a list of events in the session appears.
Click Open View waterfall to navigate from the session to a resource waterfall visualization in the view’s Performance tab.
Additional helpful documentation, links, and articles: