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

Grpc client instrumentation net.sock.peer.addr #7742

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Feb 6, 2023

Currently grpc client instrumentation unreliably fills net.sock.peer.addr which makes tests flaky https://ge.opentelemetry.io/s/nni57d5zryafk/tests/:instrumentation:grpc-1.6:javaagent:test/io.opentelemetry.javaagent.instrumentation.grpc.v1_6.GrpcStreamingTest/conversation(int,%20int)%5B8%5D?expanded-stacktrace=WyIwIl0&top-execution=1 This pr moves capturing net.sock.peer.addr to a later point where it seems to work reliably.

@laurit laurit requested a review from a team February 6, 2023 09:38
@laurit
Copy link
Contributor Author

laurit commented Feb 6, 2023

@anuragagarwal561994 could you verify this doesn't cause breakage similar to #7445

@anuragagarwal561994
Copy link
Contributor

Hey @laurit let me check this either today or tomorrow and will let you know.

@trask trask added this to the v1.23.0 milestone Feb 9, 2023
@trask
Copy link
Member

trask commented Feb 13, 2023

@anuragagarwal561994 planning to merge this tomorrow before 1.23.0 release, just in case you have a chance to check on it before then, thx!

@trask trask merged commit 4023a59 into open-telemetry:main Feb 14, 2023
@anuragagarwal561994
Copy link
Contributor

anuragagarwal561994 commented Feb 16, 2023

@trask @laurit I verified as well things are working fine, I didn't check the value being reported but nothing breaks

@laurit laurit deleted the grpc-client-peer-sock-addr branch July 6, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants