14 lines
305 B
Go
14 lines
305 B
Go
// +build noprometheus
|
|
|
|
package instrument
|
|
|
|
import "time"
|
|
|
|
type dummyInst struct{}
|
|
|
|
func Init() Instrument {
|
|
return &dummyInst{}
|
|
}
|
|
|
|
func (i dummyInst) Visit(section string, id string, search string, fmt string) {}
|
|
func (i dummyInst) Duration(section string, search string, duration time.Duration) {}
|