diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java index 15eab26a170ce..f9c32352e47a8 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java @@ -61,7 +61,7 @@ public CompletionStage helloWithCustomExecutor() { return this.threadContext .withContextCapture(CompletableFuture.supplyAsync( () -> message, this.customExecutorService)) - .thenApplyAsync(msg -> msg + "-" + Span.current().getSpanContext().getTraceId()); + .thenApplyAsync(msg -> msg + "-" + Span.current().getSpanContext().getTraceId(), customExecutorService); } } }