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
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,10 @@ The following things are captured as part of the instrumentation
63
63
64
64
Instrumentation of methods with high invocation rates can lead to CPU overhead especially if its average response time is very small (i.e. less than a few milliseconds). Therefore it is possible to configure the agent to ignore certain suspend methods, dispatched tasks and continuation resumeWiths. This configuation is done in the newrelic.yml file.
65
65
66
+
### Finding Coroutine Scopes to Ignore
67
+
This is basically meant for Standalone Coroutines that you don't want to track for some reason such as it is a long running task that doesn't need to be tracked. Lazy Coroutines are a good example. If the agent encounters that scope it will stop tracing that transaction, hence if you disable a scope that is part of another transaction rather than just itself it will also disable that transaction. But the configuration is dynamic so you can remove to restore the transaction. To find the value to use for the Coroutine Scope to ignore go into the transaction trace and select the "Custom/Builders/launch" or "Custom/Builders/async" span. In the Attributes tab find CoroutineScope-Class for the value to use as shown below.
Run the following NRQL query where appName is the name of the application using Kotlin Coroutines.
68
72
@@ -90,6 +94,9 @@ To configure methods to ignore, edit the newrelic.yml file in the New Relic Java
90
94
91
95
Note that these setting are dynamic, so typically the agent should pick up changes within a minute or so and implement the changes without having to restart.
92
96
97
+
### Configuring Scopes to Ignore
98
+
Similar to configuring the method to ignore above except add a line scopes: to the configuration as shown:
0 commit comments