question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jimshowaltercommented, Apr 16, 2021

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!

0reactions
jonatan-ivanovcommented, Apr 16, 2021

Glad you got it working, closing the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

panic: interface conversion: *v1.ExportTraceServiceRequest is ...
Describe the bug Tempo crashes when receiving OLTP telemetry To Reproduce Steps to ... ProtoMessage: missing method ProtoReflect #1213.
Read more >
Why is there a missing method error even when the code ...
It has nothing to do with "code being hit" but rather code that is not compilable. Put in the methods. But your main...
Read more >
Error handling in OpenTelemetry
Method ToString that SDK may decide to call on user object may be badly implemented and lead to stack overflow. It is common...
Read more >
Troubleshooting OpenTelemetry with New Relic
You sent OpenTelemetry data from a service or infrastructure component and either the entity or its relationships are missing or incorrect. Solution.
Read more >
Missing Points form - IHG | Customer Care
Submitting a form is the most efficient way to let us know how we're doing ... view current charges or access a past...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found