grpc_metrics

package
v1.31.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientStorage

type ClientStorage struct {
	// contains filtered or unexported fields
}

func NewClientStorage

func NewClientStorage(reg *metrics.Registry) *ClientStorage

func (*ClientStorage) ObserveDuration

func (s *ClientStorage) ObserveDuration(endpoint string, duration time.Duration)

type ServerStorage

type ServerStorage struct {
	// contains filtered or unexported fields
}

func NewServerStorage

func NewServerStorage(reg *metrics.Registry) *ServerStorage

func (*ServerStorage) CountStatusCode

func (s *ServerStorage) CountStatusCode(endpoint string, code codes.Code)

func (*ServerStorage) ObserveDuration

func (s *ServerStorage) ObserveDuration(endpoint string, duration time.Duration)

func (*ServerStorage) ObserveRequestBodySize

func (s *ServerStorage) ObserveRequestBodySize(endpoint string, size int)

func (*ServerStorage) ObserveResponseBodySize

func (s *ServerStorage) ObserveResponseBodySize(endpoint string, size int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL