metric

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 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

NewMetricHandler 创建指标处理对象

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