Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ void checkDisabledbyDefault() {
void checkProfilerWorking() {
try (AutoConfigTestProperties props =
new AutoConfigTestProperties()
.put(InferredSpansConfig.ENABLED_OPTION, "true")
.put(InferredSpansConfig.DURATION_OPTION, "500ms")
.put(InferredSpansConfig.INTERVAL_OPTION, "500ms")
.put(InferredSpansConfig.SAMPLING_INTERVAL_OPTION, "5ms")) {
.put(InferredSpansAutoConfig.ENABLED_OPTION, "true")
.put(InferredSpansAutoConfig.DURATION_OPTION, "1000ms")
.put(InferredSpansAutoConfig.INTERVAL_OPTION, "1000ms")
.put(InferredSpansAutoConfig.SAMPLING_INTERVAL_OPTION, "5ms")) {
OpenTelemetry otel = GlobalOpenTelemetry.get();
List<SpanProcessor> processors = OtelReflectionUtils.getSpanProcessors(otel);
assertThat(processors).filteredOn(proc -> proc instanceof InferredSpansProcessor).hasSize(1);
Expand Down Expand Up @@ -159,7 +159,7 @@ void checkProfilerWorking() {

private static void doSleep() {
try {
Thread.sleep(100);
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Expand Down
Loading