Skip to content

Commit

Permalink
Merge pull request #31546 from radcortez/fix-31417
Browse files Browse the repository at this point in the history
Run thenApplyAsync with custom executor in OpenTelemetryMpContextPropagationTest
  • Loading branch information
geoand authored Mar 2, 2023
2 parents b701076 + aef2a81 commit 8a23e25
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 8a23e25

Please sign in to comment.