Fix TraceableExecutorService (#1437)
TraceableExecutorService swallows Exception because `execute` submits a Runnable and ignores the Future's result. It should call the delegates `execute` method instead of the `submit`.
This commit is contained in:
committed by
Marcin Grzejszczak
parent
dc4165ffe3
commit
e2e1cdb336
@@ -63,7 +63,7 @@ public class TraceableExecutorService implements ExecutorService {
|
||||
|
||||
@Override
|
||||
public void execute(Runnable command) {
|
||||
this.delegate.submit(ContextUtil.isContextInCreation(this.beanFactory) ? command
|
||||
this.delegate.execute(ContextUtil.isContextInCreation(this.beanFactory) ? command
|
||||
: new TraceRunnable(tracing(), spanNamer(), command, this.spanName));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user