Skip to content

Commit

Permalink
Run thenApplyAsync with custom executor in OpenTelemetryMpContextProp…
Browse files Browse the repository at this point in the history
…agationTest
  • Loading branch information
radcortez committed Mar 2, 2023
1 parent 3ffbd93 commit aef2a81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public CompletionStage<String> 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);
}
}
}

0 comments on commit aef2a81

Please sign in to comment.