Documentation ¶
Index ¶
- func StreamClientInterceptor(m *ClientMetrics) grpc.StreamClientInterceptor
- func StreamServerInterceptor(m *ServerMetrics) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(m *ClientMetrics) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(m *ServerMetrics) grpc.UnaryServerInterceptor
- type ClientMetrics
- type ClientOption
- type ServerMetrics
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(m *ClientMetrics) grpc.StreamClientInterceptor
func StreamServerInterceptor ¶
func StreamServerInterceptor(m *ServerMetrics) grpc.StreamServerInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(m *ClientMetrics) grpc.UnaryClientInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(m *ServerMetrics) grpc.UnaryServerInterceptor
Types ¶
type ClientMetrics ¶
type ClientMetrics struct {
// contains filtered or unexported fields
}
func NewClientMetrics ¶
func NewClientMetrics(opts ...ClientOption) *ClientMetrics
type ClientOption ¶
type ClientOption func(m *ClientMetrics)
func WithClientHandlingTimeHistogram ¶
func WithClientHandlingTimeHistogram(enable bool) ClientOption
func WithClientMetricsSet ¶
func WithClientMetricsSet(s *metrics.Set) ClientOption
type ServerMetrics ¶
type ServerMetrics struct {
// contains filtered or unexported fields
}
func NewServerMetrics ¶
func NewServerMetrics(opts ...ServerOption) *ServerMetrics
func (*ServerMetrics) InitializeMetrics ¶
func (m *ServerMetrics) InitializeMetrics(s *grpc.Server)
type ServerOption ¶
type ServerOption func(m *ServerMetrics)
func WithServerHandlingTimeHistogram ¶
func WithServerHandlingTimeHistogram(enable bool) ServerOption
func WithServerMetricsSet ¶
func WithServerMetricsSet(s *metrics.Set) ServerOption
Click to show internal directories.
Click to hide internal directories.