metric

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncCounterRequestErr

func IncCounterRequestErr(component, path string, code int32)

IncCounterRequestErr increments the counter of request error.

func IncRequestCounter

func IncRequestCounter(component, path string)

IncRequestCounter increments the QPS counter for the given method and path.

func NewMetricHandler

func NewMetricHandler(token string) http.Handler

func RecordResponseTime

func RecordResponseTime(component, path string, duration float64)

RecordResponseTime 记录响应时间

Types

This section is empty.

Jump to

Keyboard shortcuts

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