-
Notifications
You must be signed in to change notification settings - Fork 623
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
Adding gRPC instrumentor #788
Conversation
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like good progress from a first pass, but I think there is issues with auto-instrumentation wrt using _instrument
to return the server/client instance instead of setting up a wrapper instead
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than needing to return server/client instead of setting self.server/self.client
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of changes requested but overall it looks pretty good. Please update the CHANGELOG.md file as well.
ext/opentelemetry-ext-grpc/src/opentelemetry/ext/grpc/__init__.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of changes requested, setup.cfg won't work as is, i added a suggestion. The test update would be nice but once the setup.cfg is updated, im happy to move to approve.
Co-authored-by: alrex <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the updates.
# pylint:disable=import-error | ||
# pylint:disable=no-self-use | ||
from contextlib import contextmanager | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some example code in the comments would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added examples for both client and server
can you update the grpc client tests (#896) to use this method instead of calling the interceptors themselves? |
… modifying test case as per Shawn suggestion
fixes #661