-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the current behavior
when applying a big modification we do it in a thread pool, we must propagate the observability context
Describe the expected behavior
should have traceid in logs
Describe the steps
No response
Environment
No response
Relevant Log Output
No response
Extra Information
Example code
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>context-propagation</artifactId>
</dependency>import io.micrometer.context.ContextExecutorService;
import io.micrometer.context.ContextSnapshotFactory;
public class ImportExportExecutionService {
public ImportExportExecutionService(...) {
// wrap(ExecutorService) is deprecated, micrometer wants us to be explicit
// wrap executor to propagate traceids from opened scopes in the threads
executorService = ContextExecutorService.wrap(threadPoolExecutor, () ->
ContextSnapshotFactory.builder().build().captureAll()
);
}
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working