-
Notifications
You must be signed in to change notification settings - Fork 784
Description
`
springDependencyManagementVerson=1.0.11.RELEASE
sleuthVersion=3.0.2
sleuthOtelVersion=1.0.0-M7
springCloudReleaseTrainVersion=2020.0.2
plugins {
id "io.spring.dependency-management" version "${springDependencyManagementVerson}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudReleaseTrainVersion}"
mavenBom "org.springframework.cloud:spring-cloud-sleuth-otel-dependencies:${sleuthOtelVersion}"
}
}
dependencies {
...
implementation("org.springframework.cloud:spring-cloud-sleuth-zipkin:${sleuthVersion}")
implementation("org.springframework.cloud:spring-cloud-starter-sleuth:${sleuthVersion}") {
exclude group: 'org.springframework.cloud', module: 'spring-cloud-sleuth-brave'
}
//implementation("org.springframework.cloud:spring-cloud-sleuth-autoconfigure:${sleuthVersion}")
implementation("org.springframework.cloud:spring-cloud-sleuth-otel-autoconfigure:${sleuthOtelVersion}")`
Launch service:
`
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.cloud.sleuth.autoconfig.zipkin2.ZipkinRestTemplateSenderConfiguration.restTemplateSender(ZipkinRestTemplateSenderConfiguration.java:57)
The following method did not exist:
'java.lang.String org.springframework.cloud.sleuth.zipkin2.ZipkinProperties.getApiPath()'
The method's class, org.springframework.cloud.sleuth.zipkin2.ZipkinProperties, is available from the following locations:
jar:file:/.../code/services/myservice/build/libs/myservice.jar!/BOOT-INF/lib/spring-cloud-sleuth-zipkin-3.0.2.jar!/org/springframework/cloud/sleuth/zipkin2/ZipkinProperties.class
The class hierarchy was loaded from the following locations:
org.springframework.cloud.sleuth.zipkin2.ZipkinProperties: jar:file:/.../code/services/myservice/build/libs/myservice.jar!/BOOT-INF/lib/spring-cloud-sleuth-zipkin-3.0.2.jar!/
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.cloud.sleuth.zipkin2.ZipkinProperties`