Documentation
¶
Index ¶
Constants ¶
View Source
const ( NamespaceSeparatorByte = '_' NamespaceSeparator = string(NamespaceSeparatorByte) )
Variables ¶
View Source
var ErrFailedRegistering = errors.New("failed registering metric")
Functions ¶
func AppendNamespace ¶
Types ¶
type APIInterceptor ¶
type APIInterceptor interface {
InterceptRequest(i *rpc.RequestInfo) *http.Request
AfterRequest(i *rpc.RequestInfo)
}
func NewAPIInterceptor ¶
func NewAPIInterceptor(registry metric.Registry) (APIInterceptor, error)
Click to show internal directories.
Click to hide internal directories.