This app showcases the simplest use case of the Instana Android Agent in an Android app written using:
- Kotlin
- Coroutines
- OkHttp3
Open ExampleApp.kt and replace these two values with your own (obtained in your Instana Dashboard):
REPORTING_URL
KEY
Compile as usual using Android Studio 3.x
- Instana dependencies in project-level gradle.build
- Instana plugin and dependencies in module-level gradle.build
- Minimal initialization of Instana Agent in ExampleApp.kt
- Set view name in
onResume()
in MainActivity.kt - OkHttp3 and coroutines to execute a single query which Instana automatically tracks