-
Notifications
You must be signed in to change notification settings - Fork 997
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
Index out of bounds when using gRPC UnaryCallInterceptor #682
Comments
I'm looking now at the specification and it says that
Is this some hard requirement? Because in this case there might be something wrong on my side (maybe when generating the grpc packages?) |
It looks like the spec is incorrect in that normative assertion. The gRPC protocol does not define the service name in that fashion. It seems like an added restriction of the OpenTelemetry specification, and I don't think it is justified. I'll open an Issue there. |
I'm hitting this issue as well. Is there a workaround in the meantime? EDIT: I guess the workaround is to do what @stefanprisca did and use the |
I tried out the new gRPC UnaryClientInterceptor, and got this error when making a call from the client:
I believe that the issue is with the regexp used to extract the service name from the full gRPC method name:
^/\S*\.(\S*)/\S*$
which seems to look for a fully qualified service name.In my case, the full method name is simply
/Lightpeer/Persist
, so the regexp won't find anything.I'm not sure if this is an issue on my side or not, but a possible fix can be to replace the regexp with
^/(?:\S*\.)?(\S*)/\S*$
, making it optional to have a fully qualified service name. Specifically, see this commit.The text was updated successfully, but these errors were encountered: