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.
1 parent f765922 commit 6da1777Copy full SHA for 6da1777
inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfilerTest.java
@@ -329,4 +329,12 @@ private void setupProfiler(Consumer<InferredSpansProcessorBuilder> configCustomi
329
configCustomizer.accept(config);
330
});
331
}
332
+
333
+ private static void awaitProfilerStarted(SamplingProfiler profiler) {
334
+ // ensure profiler is initialized
335
+ await()
336
+ .pollDelay(Duration.ofMillis(10))
337
+ .timeout(Duration.ofSeconds(6))
338
+ .until(() -> profiler.getProfilingSessions() > 1);
339
+ }
340
0 commit comments