Skip to content
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

Add streaming support and message events to gRPC interceptors #169

Merged
merged 5 commits into from
May 7, 2018

Conversation

wkiser
Copy link
Contributor

@wkiser wkiser commented Apr 30, 2018

The callback based util being used before didn't work very well for streams. Refactoring based off of the example in grpc/grpc#14306.

Copy link
Contributor

@liyanhui1228 liyanhui1228 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor comment, thanks!

def _start_server_span(self, rpc_request_info):
metadata = rpc_request_info.context.invocation_metadata()
def intercept_service(self, continuation, handler_call_details):
def latency_wrapper(behavior, request_streaming, response_streaming):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this name need to be the same as the grpc example? Probably change to trace_wrapper?

@wkiser
Copy link
Contributor Author

wkiser commented May 7, 2018

@liyanhui1228, any idea whats wrong with the most recent circleci checks?

@liyanhui1228
Copy link
Contributor

@wkiser System tests are flaky sometimes, rebuilding it works.

@liyanhui1228 liyanhui1228 merged commit 53f7aaa into census-instrumentation:master May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants