metrics

package
v1.0.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FdbErrorRequests    tally.Scope
	MeasuredFdbRequests = []string{
		"Delete",
		"DeleteRange",
		"CreateTable",
		"DropTable",
		"SetVersionstampedValue",
		"SetVersionstampedKey",
		"Get",
		"Insert",
		"Replace",
		"Read",
		"ReadRange",
		"Update",
		"UpdateRange",
		"BeginTx",
		"GetInternalDatabase",
	}
)
View Source
var (
	Reporter promreporter.Reporter

	// GRPC and HTTP related metrics
	Requests         tally.Scope
	ErrorRequests    tally.Scope
	RequestsRespTime tally.Scope

	FdbRequests tally.Scope
)

Functions

func GetFdbReqSpecificErrorTags

func GetFdbReqSpecificErrorTags(reqMethodName string, code string, tx bool) map[string]string

func GetFdbReqTags

func GetFdbReqTags(reqMethodName string, tx bool) map[string]string

func GetPreinitializedTagsFromFullMethod

func GetPreinitializedTagsFromFullMethod(fullMethod string, methodType string) map[string]string

func InitRequestMetricsForServer

func InitRequestMetricsForServer(s *grpc.Server)

func InitServerRequestMetrics

func InitServerRequestMetrics(svcName string, methodInfo grpc.MethodInfo)

func InitializeFdbMetrics

func InitializeFdbMetrics()

func InitializeMetrics

func InitializeMetrics() io.Closer

Types

type RequestEndpointMetadata

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

func GetGrpcEndPointMetadataFromFullMethod

func GetGrpcEndPointMetadataFromFullMethod(fullMethod string, methodType string) RequestEndpointMetadata

func (*RequestEndpointMetadata) GetPreInitializedTags

func (g *RequestEndpointMetadata) GetPreInitializedTags() map[string]string

func (*RequestEndpointMetadata) GetSpecificErrorTags

func (g *RequestEndpointMetadata) GetSpecificErrorTags(source string, code string) map[string]string

Jump to

Keyboard shortcuts

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