github.com/anycable/anycable-go@v1.5.1/metrics/noop.go (about)

     1  package metrics
     2  
     3  type NoopMetrics struct {
     4  }
     5  
     6  func (NoopMetrics) CounterIncrement(name string) {
     7  }
     8  
     9  func (NoopMetrics) CounterAdd(name string, val uint64) {
    10  }
    11  
    12  func (NoopMetrics) GaugeSet(name string, val uint64) {
    13  }
    14  
    15  func (NoopMetrics) GaugeIncrement(name string) {
    16  }
    17  
    18  func (NoopMetrics) GaugeDecrement(name string) {
    19  }
    20  
    21  func (NoopMetrics) RegisterCounter(name string, desc string) {
    22  }
    23  
    24  func (NoopMetrics) RegisterGauge(name string, desc string) {
    25  }
    26  
    27  var _ Instrumenter = (*NoopMetrics)(nil)