-
Notifications
You must be signed in to change notification settings - Fork 641
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
opentelemetry-instrumentation-grpc client instrumentation fails if channel has interceptors #320
Comments
Ugh, I knew this one was going to come up based on the hidden magic of how the "wrapper" thing was initially designed, it's why I redesigned the server part to be able to handle an existing interceptor chain. It should be a pretty easy fix, just to mimic how it's done in the server. If you want to work on it @iredelmeier, say so - otherwise I could probably get to it myself :) |
This issue was marked stale due to lack of activity. It will be closed in 30 days. |
I have raised a PR to fix this. #442 |
This issue was marked stale due to lack of activity. It will be closed in 30 days. |
@mihirg |
I ran the code with the following packages installed
and got the following output:
I believe this issue has been fixed. Please re-open if that's not the case @iredelmeier |
Describe your environment
Verified on python 3.8.6 with opentelemetry 0.17b0
Steps to reproduce
tl;dr:
GrpcInstrumentorClient().instrument()
+ a channel intercepted withgrpc.intercept_channel
Based on the gRPC helloworld example, sub out
greeter_client.py
for:What is the expected behavior?
The client should continue to behave as a standard, working gRPC client, now with instrumentation
What is the actual behavior?
Requests made through the client now error, e.g.:
Note: I've so far only verified this causes problems with UnaryUnary requests. I assume that some or all of the other types fail similarly.
Additional context
Happy to fix this myself :)
The text was updated successfully, but these errors were encountered: