Documentation
¶
Overview ¶
Package grpcstats provides shims for writing rpc logger events to a stats collector.
Index ¶
Constants ¶
View Source
const ( TagRPCMethod string = "rpc_method" TagRPCPeer string = "rpc_peer" TagRPCStreamMessageDirection string = "rpc_stream_msg_direction" TagRPCEngine string = "rpc_peer" TagRPCAuthority string = "rpc_authority" RPCMethodUnknown string = "unknown" MetricNameRPC string = string(grpcutil.FlagRPC) MetricNameRPCStreamMessage string = string(grpcutil.FlagRPCStreamMessage) MetricNameRPCElapsed string = MetricNameRPC + ".elapsed" MetricNameRPCElapsedLast string = MetricNameRPCElapsed + ".last" MetricNameRPCStreamMessageElapsed string = MetricNameRPCStreamMessage + ".elapsed" MetricNameRPCStreamMessageElapsedLast string = MetricNameRPCStreamMessageElapsed + ".last" )
Tag constants
Variables ¶
This section is empty.
Functions ¶
func AddListeners ¶
func AddListeners(log logger.Listenable, collector stats.Collector, opts ...stats.AddListenerOption)
AddListeners adds grpc listeners.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.