Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Springboot v3.3.0 - application failing during startup due to zipkin / brave tracing version upgrade #40914

Closed
ashishsinghTW opened this issue May 27, 2024 · 1 comment
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid

Comments

@ashishsinghTW
Copy link

ashishsinghTW commented May 27, 2024

I recently upgraded to springboot v3.3, after which the app is failing during startup. Service is hosted on gcp. Error:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[zipkin2.reporter.AsyncReporter]: Factory method 'stackdriverReporter' threw exception with message: Receiver class
zipkin2.reporter.stackdriver.StackdriverSender does not define or inherit an implementation of the resolved method 'abstract zipkin2.reporter.Encoding encoding()' 
of interface zipkin2.reporter.BytesMessageSender.
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:177)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
	... 142 common frames omitted
Caused by: java.lang.AbstractMethodError: Receiver class zipkin2.reporter.stackdriver.StackdriverSender 
does not define or inherit an implementation of the resolved method 'abstract zipkin2.reporter.Encoding encoding()' 
of interface zipkin2.reporter.BytesMessageSender.
	at zipkin2.reporter.AsyncReporter$Builder.<init>(AsyncReporter.java:104)
	at zipkin2.reporter.AsyncReporter.builder(AsyncReporter.java:64)
	at zipkin2.reporter.AsyncReporter.builder(AsyncReporter.java:59)
	at com.google.cloud.spring.autoconfigure.trace.StackdriverTraceAutoConfiguration.stackdriverReporter(StackdriverTraceAutoConfiguration.java:178)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:140)
	... 143 common frames omitted

I am using following tracing dependencies:

  implementation 'com.google.cloud:spring-cloud-gcp-starter-trace:5.3.0'
  implementation 'io.micrometer:micrometer-tracing-bridge-brave:1.3.0'
  implementation 'com.google.cloud:spring-cloud-gcp-starter-metrics':5.3.0

Any idea on why this might be happening ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 27, 2024
@mhalbritter
Copy link
Contributor

Looks like spring-cloud-gcp-starter-trace is using Brave 5. They need to update it to Brave 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants