Documentation
¶
Index ¶
- func WithClientGRPCStatsHandler() grpc.DialOption
- func WithServerGRPCStatsHandler() grpc.ServerOption
- type ClientHandler
- func (h *ClientHandler) HandleConn(ctx context.Context, cs stats.ConnStats)
- func (h *ClientHandler) HandleRPC(ctx context.Context, rs stats.RPCStats)
- func (h *ClientHandler) TagConn(ctx context.Context, cti *stats.ConnTagInfo) context.Context
- func (h *ClientHandler) TagRPC(ctx context.Context, rti *stats.RPCTagInfo) context.Context
- type ServerHandler
- func (h *ServerHandler) HandleConn(ctx context.Context, cs stats.ConnStats)
- func (h *ServerHandler) HandleRPC(ctx context.Context, rs stats.RPCStats)
- func (h *ServerHandler) TagConn(ctx context.Context, cti *stats.ConnTagInfo) context.Context
- func (h *ServerHandler) TagRPC(ctx context.Context, rti *stats.RPCTagInfo) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithClientGRPCStatsHandler ¶
func WithClientGRPCStatsHandler() grpc.DialOption
WithClientGRPCStatsHandler sets up the gRPC stats handler for the client with metrics and tracing support
func WithServerGRPCStatsHandler ¶
func WithServerGRPCStatsHandler() grpc.ServerOption
WithServerGRPCStatsHandler sets up the gRPC stats handler for the server with metrics and tracing support.
Types ¶
type ClientHandler ¶
type ClientHandler struct {
// contains filtered or unexported fields
}
func (*ClientHandler) HandleConn ¶
func (h *ClientHandler) HandleConn(ctx context.Context, cs stats.ConnStats)
func (*ClientHandler) HandleRPC ¶
func (h *ClientHandler) HandleRPC(ctx context.Context, rs stats.RPCStats)
func (*ClientHandler) TagConn ¶
func (h *ClientHandler) TagConn(ctx context.Context, cti *stats.ConnTagInfo) context.Context
func (*ClientHandler) TagRPC ¶
func (h *ClientHandler) TagRPC(ctx context.Context, rti *stats.RPCTagInfo) context.Context
type ServerHandler ¶
type ServerHandler struct {
// contains filtered or unexported fields
}
func (*ServerHandler) HandleConn ¶
func (h *ServerHandler) HandleConn(ctx context.Context, cs stats.ConnStats)
func (*ServerHandler) HandleRPC ¶
func (h *ServerHandler) HandleRPC(ctx context.Context, rs stats.RPCStats)
func (*ServerHandler) TagConn ¶
func (h *ServerHandler) TagConn(ctx context.Context, cti *stats.ConnTagInfo) context.Context
func (*ServerHandler) TagRPC ¶
func (h *ServerHandler) TagRPC(ctx context.Context, rti *stats.RPCTagInfo) context.Context
Click to show internal directories.
Click to hide internal directories.