metrics

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

func RegisterOn

func RegisterOn(registerer prometheusclient.Registerer)

func UnRegister

func UnRegister()

func UnRegisterFrom

func UnRegisterFrom(registerer prometheusclient.Registerer)

Types

type MetricsServer

type MetricsServer struct {
	*http.Server
}

func NewMetricsServer

func NewMetricsServer(address string) *MetricsServer

NewMetricsServer returns a new prometheus server which collects api server metrics

type Tracer

type Tracer struct{}

func (Tracer) ExtensionName

func (a Tracer) ExtensionName() string

func (Tracer) InterceptField

func (a Tracer) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)

func (Tracer) InterceptOperation

func (a Tracer) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler

func (Tracer) InterceptResponse

func (a Tracer) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response

func (Tracer) Validate

func (a Tracer) Validate(schema graphql.ExecutableSchema) error

Jump to

Keyboard shortcuts

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