Missing method error when trying to use otel
See original GitHub issue` 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`
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)

Top Related StackOverflow Question
Primarily the issue was that we really wanted to use opentelemetry, but it’s not ready yet, and I didn’t listen to you quickly enough.
Regarding the disable, it works fine. The problem was precedence. I moved some yaml files around and now it defaults to off, but can be enabled per environment.
Thank you for your multiple quick responses!
Glad you got it working, closing the issue.