Closed creatorKoo closed 5 years ago
Which version of Sleuth are you using?
2.1.1.RELEASE
my gradle dependencies below
dependencies {
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-webflux'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-hystrix'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-ribbon'
compile 'org.springframework.cloud:spring-cloud-starter-sleuth:2.1.1.RELEASE'
compile 'org.springframework.cloud:spring-cloud-starter-gateway'
compile 'org.springframework.cloud:spring-cloud-starter-zookeeper-discovery'
compile 'org.bitbucket.b_c:jose4j:0.6.5'
compileOnly 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'io.projectreactor:reactor-test'
}
Why do you set that dependency manually? Can't you use the Greenwich.SR1 train?
I think you're having some classpath issues cause in the latest version that should have been already fixed via https://github.com/spring-cloud/spring-cloud-sleuth/issues/1224
wow. I forgot Greenwich.SR1 update. very thank you for your help.
example code below:
I think flatmap change thread context and npe exception. (i test this code on spring cloud gateway)
npe