Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Integrate with gRPC #79

Open
jparsana opened this issue Oct 15, 2018 · 2 comments
Open

Integrate with gRPC #79

jparsana opened this issue Oct 15, 2018 · 2 comments

Comments

@jparsana
Copy link

Implement gRPC plugin that would enable tracing for gRPC request on client and server side. It should also instrument for collecting basic stats for gRPC requests/responses. Provide an easy way to enable those stats collections. See reference implementation in Java for both tracing and stats.

@0x2c7
Copy link

0x2c7 commented Oct 15, 2018

One note for this issue. The gRPC's Ruby implementation support a middleware mechanism called interceptors: https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/generic/interceptors.rb. With this mechanism, we can add the tracing and stats without the need of monkey patching.

@south37
Copy link

south37 commented Jan 20, 2020

I created a gem to integrate opencensus-ruby with gRPC.
cf. https://rubygems.org/gems/grpc_opencensus_interceptor

Fow now, only the server interceptor's #request_response method is supported. The functionality is limited, but it works well for my use.

I also created a PR based on this gem. Please take a look if you are interested in it.
#123

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants