You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,10 @@ Provides instrumentation for Kotlin Coroutines. In particular it will trace the
24
24
Kotlin-Coroutines-1.0 - all 1.0.x versions.
25
25
Kotlin-Coroutines-1.1 - all 1.1.x versions.
26
26
Kotlin-Coroutines-1.2 - all 1.2.x and 1.3.x versions.
27
-
Kotlin-Coroutines-1.4 - all 1.4.x and later versions.
27
+
Kotlin-Coroutines-1.4 - all 1.4.x versions.
28
+
Kotlin-Coroutines-1.5 - all 1.5.x and 1.6.x versions.
29
+
Kotlin-Coroutines-1.7 - all 1.7.x versions.
30
+
Kotlin-Coroutines-1.8 - all 1.8.x versions and later.
28
31
29
32
## Installation
30
33
To use this instrumentation.
@@ -37,9 +40,18 @@ Restart the application.
37
40
The easiest way to see if the instrumentation has been loaded by the Java Agent is to look for the Java Agent UI's Metric Explorer and enter "supportability/weaveinstrumentation/loaded/com.newrelic.instrumentation.labs.kotlin-coroutines". If a metric is reported then the agent has loaded the instrumentation appropriate to the version of Kotlin Coroutines that you are using.
38
41
If no metric is displayed, then check for "supportability/weaveinstrumentation/skipped/com.newrelic.instrumentation.labs.kotlin-coroutines". If no metrics are displayed verify that the instrumentation jars have been deployed to the extensions directory and that the user id that runs the application has read access.
39
42
43
+
You can also check any captured transactions for Metrics that start with 'Custom/SuspendFunction/' or 'Custom/DispatchedTask'
44
+
40
45
## Getting Started
41
46
42
-
After deployment of the instrumentation jars, you should be able to see the invocation of a coroutine from start to finish across any threads that it executes on.
47
+
After deployment of the instrumentation jars, you should be able to see the invocation of a coroutine from start to finish across any threads that it executes on.
48
+
49
+
The following things are captured as part of the instrumentation
50
+
| Item | Metric Name format | Example |
51
+
| ---- | ---- | ---- |
52
+
| Suspend Functions | Custom/SuspendFunction/*ContinuationString*| Custom/SuspendFunction/Continuation at com.nrlabs.WithContextKt.main$doTaskOne(WithContext.kt:12) |
0 commit comments