-
Notifications
You must be signed in to change notification settings - Fork 55
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
NullPointerException when no local ip in Span #224
Comments
We are also facing this issue |
Anyone up for making a pull request to fix this and add tests for it? Looks like the AttributesExtractor used by the other encoder has null checks for IP: Lines 64 to 71 in 829844a
|
We get this problem when running spring on cloud run |
Would folks affected by this be able to test with snapshots to confirm there aren't any remaining issues with the fix now merged? |
We've tested with Os's PR and it fixes the issue for us, thanks |
oh, that's great to hear! 🥳 |
Releases for this repo are ad hoc. I'll try to find time to do a release this week. |
With #226 merged, I think we have everything ready for the release. If anyone would like to try out snapshots before the release to make sure everything is good, that'd be appreciated. |
I tried the 2.2.5-SNAPSHOT and it worked for our deployment |
2.2.5 is released now with this fix. |
Describe the Bug
When localIP is missing in Server braveSpan, it causes exception:
Steps to Reproduce
Make sure that your Server Span is missing local IP address.
Not sure how to reproduce it exactly - the problem occurs in our Integration tests only in Jenkins Agent on Kubernetes, locally the IP address is present.
In our case it is for Spring Boot 3.3.2 MVC RestController span.
Expected Behaviour
There should be check if
braveSpan.localIp()!=null
before invokingInetAddresses.forString(String ipString)
on it:https://github.com/openzipkin/zipkin-gcp/blob/master/encoder-stackdriver-brave/src/main/java/zipkin2/reporter/stackdriver/brave/AttributesExtractor.java#L76
If localIP is null, do not set any attribute for it.
The text was updated successfully, but these errors were encountered: