You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using propagation type custom by setting property: spring.sleuth.propagation.type=custom
StackOverflowError is thrown when Tracing bean is initialized.
As Tracing bean is lazily initialized, you can for example provide tracing customizer:
@Bean
public NettyServerCustomizer tracingCustomizer(HttpTracing httpTracing) {
return server -> ReactorNettyHttpTracing.create(httpTracing).decorateHttpServer(server);
}
and exception will be thrown at startup.
Problem is reproducible with spring-cloud-sleuth version 3.0.3. Previous version 3.0.2 didn't have this problem.
Problem relates to newly introduced LazyPropagationFactory (in CompositePropagationFactory).
Describe the bug
When using propagation type custom by setting property:
spring.sleuth.propagation.type=customStackOverflowError is thrown when Tracing bean is initialized.
As Tracing bean is lazily initialized, you can for example provide tracing customizer:
and exception will be thrown at startup.
Problem is reproducible with spring-cloud-sleuth version 3.0.3. Previous version 3.0.2 didn't have this problem.
Problem relates to newly introduced
LazyPropagationFactory(in CompositePropagationFactory).Sample
spring-cloud-samples/sleuth-issues#73