/kotlin-coroutines-demo

a demo app for kotlin co-routines instrumentation for New Relic

Primary LanguageKotlin

Demo app for Kotlin co-routines instrumentation

This is a demo app for Kotlin Coroutines Instrumentation.

Usage

  1. Clone the repo to your machine git clone https://github.com/danifitz/kotlin-coroutines-demo.git
  2. Download the New Relic Java agent
  3. Unzip the Java agent to a location on your machine
  4. Download the Kotlin Coroutines instrumentation .jar file and add it to the agent extensions directory
  5. Edit build.gradle and configure gretty.jvmArgs to point to newrelic.jar in the location where you downloaded the agent.
  6. Configure newrelic.yml in the agent directory with your appName and licenseKey
  7. Run the kotlin demo app ./gradlew appRun
  8. In a new terminal window, run some tests against the app ./test.sh - you might need to make this executable first by running chmod +x test.sh
  9. Open New Relic and take a look at the demo app reporting transactions and breakdowns.

Example Results

Transactions list Transactions List

Transaction Trace

Segment Breakdown