github.com/zooyer/miskit@v1.0.71/metric/metric.go (about) 1 package metric 2 3 import ( 4 "fmt" 5 "time" 6 ) 7 8 func Rpc(name, caller, callee string, code int, latency time.Duration, tag map[string]interface{}) { 9 fmt.Println("[METRIC - RPC]", time.Now(), name, caller, callee, code, latency, tag) 10 } 11 12 func Count(name string, count int, tag map[string]interface{}) { 13 fmt.Println("[METRIC - COUNT]", time.Now(), name, count, tag) 14 }