github.com/aakash4dev/cometbft@v0.38.2/scripts/metricsgen/testdata/basic/metrics.go (about) 1 package basic 2 3 import "github.com/go-kit/kit/metrics" 4 5 //go:generate go run ../../../../scripts/metricsgen -struct=Metrics 6 7 // Metrics contains metrics exposed by this package. 8 type Metrics struct { 9 // simple metric that tracks the height of the chain. 10 Height metrics.Gauge 11 }