metrics

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	MarshallingRequestsSummary prometheus.Summary
	MarshallingRequests        *prometheus.HistogramVec

	UnmarshallingRequestsSummary prometheus.Summary
	UnmarshallingRequests        *prometheus.HistogramVec
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics() *Metrics

func Start

func Start(ctx context.Context, config config.Config) (metrics *Metrics, err error)

func (*Metrics) LogMarshallingRequest

func (this *Metrics) LogMarshallingRequest(request *http.Request, endpoint string, msg messages.MarshallingV2Request, duration time.Duration)

func (*Metrics) LogUnmarshallingRequest added in v0.0.6

func (this *Metrics) LogUnmarshallingRequest(request *http.Request, endpoint string, msg messages.UnmarshallingV2Request, duration time.Duration)

func (*Metrics) ServeHTTP

func (this *Metrics) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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