/
dummy.go
21 lines (17 loc) · 976 Bytes
/
dummy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package metrics
import "time"
// Dummy is a dummy recorder.
var Dummy Recorder = &dummy{}
type dummy struct{}
func (d *dummy) WithID(id string) Recorder { return d }
func (dummy) ObserveCommandExecution(start time.Time, success bool) {}
func (dummy) IncRetry() {}
func (dummy) IncTimeout() {}
func (dummy) IncBulkheadQueued() {}
func (dummy) IncBulkheadProcessed() {}
func (dummy) IncBulkheadTimeout() {}
func (dummy) IncCircuitbreakerState(state string) {}
func (dummy) IncChaosInjectedFailure(kind string) {}
func (dummy) SetConcurrencyLimitInflightExecutions(q int) {}
func (dummy) IncConcurrencyLimitResult(result string) {}
func (dummy) SetConcurrencyLimitLimiterLimit(limit int) {}