-
Notifications
You must be signed in to change notification settings - Fork 96
Add instrumentation for gRPC on propagating tags and recording gRPC stats #270
Comments
I would like to help out with this issue. Any pointers or comparison with any existing package would be welcome. |
Also see gRPC-Java: CensusStatsModule and CensusTracingModule. |
should i modify opencensus-intrumentation-grpc or create a new package? |
what is equivalent of |
|
but there is no way to get views in node package |
I think we should add |
@mayurkale22 can you take a look at this: https://gist.github.com/vigneshtdev/c198d964cccbfc05a3a45e8f18a5d87f |
@vigneshtdev this is good start, I would suggest following changes.
|
@vigneshtdev I was hoping to see your PR, let me know if you have any question? |
hey what is *stats.OutPayload supposed to mean? |
I am not a Go expert, @rghetia Could you please shed light on this? |
the above line means if the type of the variable is *stats.OutPayload. For outbound call (either from client or from server) will have stats.OutPayload. |
grpc-node doesn't have a stats package. So do we assume user shall always pass grpc stats? In Go's implementation, the statsHandler function accepts grpc stats & further validates them by accessing properties viz; However, java's implementation is even different in that, all the data is plain static. It just registers the views which fall into the predefined set of views. https://github.com/census-instrumentation/opencensus-java/blob/bb02baadd97b753a2740827cffb332665bad1526/examples/src/main/java/io/opencensus/examples/grpc/helloworld/HelloWorldClient.java#L113 |
@mayurkale22 And if I use This is the ts lint error Fixed by making use |
@vigneshtdev |
Hmm strange. I did notice that in the workspace some packages compiled with that import. But some others didn't. Also the version of @opencensus/core was 0.0.8. |
Provide instrumentation for gRPC Client and Server to record gRPC stats. Interceptors should also propagate Tags.
The text was updated successfully, but these errors were encountered: