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

Cloud Trace - Zipkin Reporter issue on Spring Boot 3.3.2 #3180

Open
rangemasterd opened this issue Aug 30, 2024 · 1 comment
Open

Cloud Trace - Zipkin Reporter issue on Spring Boot 3.3.2 #3180

rangemasterd opened this issue Aug 30, 2024 · 1 comment
Labels
priority: p2 trace type: bug Something isn't working

Comments

@rangemasterd
Copy link

rangemasterd commented Aug 30, 2024

Hello! After upgrading to Spring Boot v3.3.2 i noticed an error on the logs regarding Zipkin reporter

The error seems to appear always after a new app deployment and randomly during its execution time.

Error:

Unexpected error flushing spans
Exception in thread "AsyncReporter{StackdriverSender{projects/my-project}}" java.lang.NullPointerException: Cannot invoke "String.length()" because "ipString" is null
	at com.google.common.net.InetAddresses.ipStringToBytes(InetAddresses.java:196)
	at com.google.common.net.InetAddresses.forString(InetAddresses.java:158)
	at zipkin2.reporter.stackdriver.brave.AttributesExtractor.extract(AttributesExtractor.java:76)
	at zipkin2.reporter.stackdriver.brave.SpanTranslator.translate(SpanTranslator.java:80)
	at zipkin2.reporter.stackdriver.brave.StackdriverV2Encoder.translate(StackdriverV2Encoder.java:59)
	at zipkin2.reporter.stackdriver.brave.StackdriverV2Encoder.sizeInBytes(StackdriverV2Encoder.java:31)
	at zipkin2.reporter.stackdriver.brave.StackdriverV2Encoder.sizeInBytes(StackdriverV2Encoder.java:15)
	at zipkin2.reporter.internal.CountBoundedQueue.doDrain(CountBoundedQueue.java:115)
	at zipkin2.reporter.internal.CountBoundedQueue.drainTo(CountBoundedQueue.java:83)
	at zipkin2.reporter.internal.AsyncReporter$BoundedAsyncReporter.flush(AsyncReporter.java:241)
	at zipkin2.reporter.internal.AsyncReporter$Flusher.run(AsyncReporter.java:352)
	at java.base/java.lang.Thread.run(Unknown Source)

App Detail

  • Java: 17
  • Spring cloud gpc version: 5.5.1
  • Spring boot version: 3.3.2

The app is deployed in GKE.

Any clue on why this might be happening?

@JoeWang1127 JoeWang1127 added type: bug Something isn't working trace priority: p2 labels Aug 30, 2024
@hjed
Copy link

hjed commented Sep 11, 2024

This issue has been found and fixed in openzipkin-gcp openzipkin/zipkin-gcp#224 would be good if dependency could be fixed in spring-cloud-gcp though.

I see there's already an open PR for the bump at #3189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 trace type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants