Conversation
|
Thanks for the PR! In the issue you mentioned environment variables, something like |
|
@aabmass thanks for the comment! though I tried to look up the implementation for |
|
Ok, now I understand this part is referencing the environment variable via |
|
@aabmass ok, I added the support in the global interceptor to exclude requests to services specified in |
|
Tox is the right way. They are probably flakes or maybe an already known issue. I'll review this PR :) |
aabmass
left a comment
There was a problem hiding this comment.
Thanks for the PR, sorry for all the comments
...tation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
Outdated
Show resolved
Hide resolved
...tation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
Outdated
Show resolved
Hide resolved
...tation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
Outdated
Show resolved
Hide resolved
...tation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
Outdated
Show resolved
Hide resolved
...tation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...tation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
Outdated
Show resolved
Hide resolved
…emetry/instrumentation/grpc/__init__.py Co-authored-by: Aaron Abbott <aaronabbott@google.com>
…emetry/instrumentation/grpc/__init__.py Co-authored-by: Aaron Abbott <aaronabbott@google.com>
…emetry/instrumentation/grpc/__init__.py Co-authored-by: Aaron Abbott <aaronabbott@google.com>
…emetry/instrumentation/grpc/__init__.py Co-authored-by: Aaron Abbott <aaronabbott@google.com>
…emetry/instrumentation/grpc/filters/__init__.py Co-authored-by: Aaron Abbott <aaronabbott@google.com>
…emetry/instrumentation/grpc/filters/__init__.py Co-authored-by: Aaron Abbott <aaronabbott@google.com>
…emetry/instrumentation/grpc/filters/__init__.py Co-authored-by: Aaron Abbott <aaronabbott@google.com>
ymotongpoo
left a comment
There was a problem hiding this comment.
adopted the suggestions and replied to the questions
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...tation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py
Outdated
Show resolved
Hide resolved
|
I updated the option name from |
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
...pentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/filters/__init__.py
Outdated
Show resolved
Hide resolved
| class _HandlerCallDetails( | ||
| collections.namedtuple( | ||
| "_HanlderCallDetails", | ||
| ( | ||
| "method", | ||
| "invocation_metadata", | ||
| ), | ||
| ), | ||
| grpc.HandlerCallDetails, | ||
| ): | ||
| pass | ||
|
|
||
|
|
||
| class _UnaryClientInfo( | ||
| collections.namedtuple("_UnaryClientInfo", ("full_method", "timeout")) | ||
| ): | ||
| pass | ||
|
|
||
|
|
||
| class _StreamClientInfo( | ||
| collections.namedtuple( | ||
| "_StreamClientInfo", | ||
| ("full_method", "is_client_stream", "is_server_stream", "timeout"), | ||
| ) | ||
| ): | ||
| pass |
There was a problem hiding this comment.
Either collections.namedtuple or @dataclass is fine. I aligned the implementation here with the one in grpcext.
Description
This pull request adds section to handle filter in client and server interceptors and provides pre-defined commonly used filters.
Fixes #373
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.