@Bean @ConditionalOnNotWebApplication LastOperatorWrapper spanOperator() { return new LastOperatorWrapper() { @Override public void wrapLastOperator(Tracer tracer) { Hooks.onLastOperator(ReactorSleuth.spanOperator(tracer)); } }; }