Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagEnableMonitor = "rpc.enable-monitor" MetricsNamespace = "x" // MetricsSubsystem is a subsystem shared by all metrics exposed by this package. MetricsSubsystem = "rpc" MetricsFieldName = "apis" MetricsMethodLabel = "method" MetricsCounterNamePattern = "%s_%s_count" MetricsHistogramNamePattern = "%s_%s_duration" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func GetMonitor ¶
func GetMonitor(method string, logger log.Logger, metrics *RpcMetrics) *Monitor
type RpcMetrics ¶
RpcMetrics ...
func MakeMonitorMetrics ¶
func MakeMonitorMetrics(namespace string) *RpcMetrics
Click to show internal directories.
Click to hide internal directories.