Don't wrap operators when context not active

fixes gh-1856
This commit is contained in:
Marcin Grzejszczak
2021-03-16 11:58:31 +01:00
parent d090ce3255
commit 3000680a3e

View File

@@ -122,7 +122,7 @@ public abstract class ReactorSleuth {
ConfigurableApplicationContext springContext, LazyBean<CurrentTraceContext> lazyCurrentTraceContext,
LazyBean<Tracer> lazyTracer) {
return (p, sub) -> {
if (!springContext.isActive()) {
if (!springContext.isActive() || !springContext.isRunning()) {
if (log.isTraceEnabled()) {
String message = "Spring Context [" + springContext
+ "] is not yet refreshed. This is unexpected. Reactor Context is [" + context(sub)