InternalNettyServerBuilder -> what is setStatsEnabled?

19 views
Skip to first unread message

ivan.to...@gmail.com

unread,
Jul 8, 2019, 11:26:00 AM7/8/19
to grpc.io
Hello gRPC team, we were checking out the NettyServerBuilder and we stumbled upon InternalNettyServerBuilder, which has a quite interesting comment.

/**
 * Internal {@link InternalNettyServerBuilder} accessor.  This is intended for usage internal to
 * the gRPC team.  If you *really* think you need to use this, contact the gRPC team first.
 */

Could you please shed some light on what are the statistics and metrics being recorded here?

Do they record when a message is incoming and when is outgoing the server, and how can we see these data?

Kun Zhang

unread,
Jul 10, 2019, 7:29:21 PM7/10/19
to grpc.io
The stats are reported to OpenCensus. Once you load your application with the proper OpenCensus runtime libraries, they will report the metrics to a backend such as StackDriver.
About how to see the data, please refer to https://opencensus.io/guides/grpc/java/
In particular, here is the full list of metrics being recorded: https://www.javadoc.io/doc/io.opencensus/opencensus-contrib-grpc-metrics/0.23.0
Reply all
Reply to author
Forward
0 new messages