We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9515e48 + 5e3125c commit eaeb158Copy full SHA for eaeb158
sample/benchmark/src/main/java/com/datadog/benchmark/sample/di/activity/DatadogActivityModule.kt
@@ -47,8 +47,8 @@ internal interface DatadogActivityModule {
47
context: Context,
48
config: BenchmarkConfig
49
): SdkCore {
50
- check(config.run != SyntheticsRun.Baseline) {
51
- "Datadog must not be initialized in baseline run"
+ if (config.run == SyntheticsRun.Baseline) {
+ return Datadog.getInstance() // returns NoOpInternalSdkCore under the hood
52
}
53
54
return Datadog.initialize(
0 commit comments