Documentation ¶
Index ¶
Constants ¶
View Source
const ContractsSubsystem = "contracts"
Variables ¶
View Source
var NoopContractMetrics = &NoopMetrics{}
Functions ¶
This section is empty.
Types ¶
type ContractMetricer ¶
type ContractMetrics ¶
type ContractMetrics struct { ContractRequestsTotal *prometheus.CounterVec ContractRequestDurationSeconds *prometheus.HistogramVec }
func MakeContractMetrics ¶
func MakeContractMetrics(ns string, factory Factory) *ContractMetrics
func (*ContractMetrics) StartContractRequest ¶
func (m *ContractMetrics) StartContractRequest(method string) EndTimer
type Factory ¶
type Factory interface { NewCounterVec(opts prometheus.CounterOpts, labelNames []string) *prometheus.CounterVec NewHistogramVec(opts prometheus.HistogramOpts, labelNames []string) *prometheus.HistogramVec }
type NoopMetrics ¶
type NoopMetrics struct { }
func (*NoopMetrics) StartContractRequest ¶
func (n *NoopMetrics) StartContractRequest(_ string) EndTimer
Click to show internal directories.
Click to hide internal directories.