-
Notifications
You must be signed in to change notification settings - Fork 873
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 Instrumentation doesn't work post 1.17.0 #7445
Comments
Hey @anuragagarwal561994 , What version of grpc are you using? |
So I tried last 4 versions of grpc from 1.51 to 1.48 and none of them work with > 1.17.0 versions of otel instrumentation, while all of them works for <= 1.17.0. Sure let me try and make an executable scenario where this might be taking place. |
So as I was making a test setup for the same, I realised that this issue happens only in grpc-xds kind of setup and not in regular grpc client server. I am trying to make a test setup for the same, but since I am not able to bring up a xds kind of setup locally I have to use istio for the same, will that be debuggable? |
https://github.com/anuragagarwal561994/otel-grpc-poc Let me know if there are any issues you encounter, I have just setup this repo. |
@mateuszrzeszutek I have debugged the issue on my own and identified why this is happening. It is happening because of line https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/grpc-1.6/library/src/main/java/io/opentelemetry/instrumentation/grpc/v1_6/TracingClientInterceptor.java#L62 This was introduced in Here after getting the call we are fetching the attributes. If we check the above code snippet, when there is a simple RPC, which means But in case when we are using The delegate is assigned when the rpc is starting. Now the getAttributes() is using the I guess we should ideally make the |
Describe the bug
This happens with grpc instrumentation post 1.17.0 version, I tried different versions and 1.17.0 was the last working version.
Steps to reproduce
This is the simplest test code being used.
What did you expect to see?
Instrumentation should not give an error.
What did you see instead?
An exception and the grpc call resulted in an error.
What version are you using?
v1.21.0
Environment
openjdk version "17.0.5" 2022-10-18 LTS
OpenJDK Runtime Environment Zulu17.38+21-CA (build 17.0.5+8-LTS)
OpenJDK 64-Bit Server VM Zulu17.38+21-CA (build 17.0.5+8-LTS, mixed mode, sharing)
The text was updated successfully, but these errors were encountered: