kratos: github.com/bilibili/kratos/pkg/stat Index | Files | Directories

package stat

import "github.com/bilibili/kratos/pkg/stat"

Index

Package Files

stat.go

type Stat Uses

type Stat interface {
    Timing(name string, time int64, extra ...string)
    Incr(name string, extra ...string) // name,ext...,code
    State(name string, val int64, extra ...string)
}

Stat interface.

var (
    // http
    HTTPClient Stat = prom.HTTPClient
    HTTPServer Stat = prom.HTTPServer
    // storage
    Cache Stat = prom.LibClient
    DB    Stat = prom.LibClient
    // rpc
    RPCClient Stat = prom.RPCClient
    RPCServer Stat = prom.RPCServer
)

default stat struct.

Directories

PathSynopsis
metric
prom
sys/cpu

Package stat imports 1 packages (graph) and is imported by 7 packages. Updated 2019-07-15. Refresh now. Tools for package owners.