0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-14 20:39:36 +03:00

feat: metrics including pprof, expvars

This commit is contained in:
yichya
2022-03-25 11:24:23 +08:00
committed by yuhan6665
parent 91ffb7617d
commit 35eb165f63
9 changed files with 530 additions and 1 deletions

View File

@ -0,0 +1,9 @@
package metrics
import "github.com/xtls/xray-core/common/errors"
type errPathObjHolder struct{}
func newError(values ...interface{}) *errors.Error {
return errors.New(values...).WithPathObj(errPathObjHolder{})
}