8000 Enable Kotlin coroutines integration by default · DataDog/dd-trace-java@ad97f20 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad97f20

Browse files
committed
Enable Kotlin coroutines integration by default
1 parent 43d6612 commit ad97f20

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

dd-java-agent/instrumentation/kotlin-coroutines/src/main/java/datadog/trace/instrumentation/kotlin/coroutines/KotlinCoroutinesModule.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99
@AutoService(InstrumenterModule.class)
1010
public class KotlinCoroutinesModule extends InstrumenterModule.Tracing {
1111
public KotlinCoroutinesModule() {
12-
super("kotlin_coroutine.experimental");
13-
}
14-
15-
@Override
16-
protected final boolean defaultEnabled() {
17-
return false;
12+
super("kotlin_coroutine");
1813
}
1914

2015
@Override

dd-java-agent/instrumentation/kotlin-coroutines/src/testFixtures/groovy/datadog/trace/instrumentation/kotlin/coroutines/AbstractKotlinCoroutineInstrumentationTest.groovy

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ abstract class AbstractKotlinCoroutineInstrumentationTest<T extends CoreKotlinCo
2020
['single thread pool', ThreadPoolDispatcherKt.newSingleThreadContext("Single-Thread")],
2121
]
22< 7277 /code>22

23-
@Override
24-
void configurePreAgent() {
25-
super.configurePreAgent()
26-
27-
injectSysConfig("dd.integration.kotlin_coroutine.experimental.enabled", "true")
28-
}
29-
3023
def "kotlin cancellation prevents trace #dispatcherName"() {
3124
setup:
3225
CoreKotlinCoroutineTests kotlinTest = getCoreKotlinCoroutineTestsInstance(dispatcher)

0 commit comments

Comments
 (0)
0