Skip to content

Commit 28c2ce0

Browse files
authored
v043 audit changes for telemetry/ (cosmos#9297)
* v043 audit changes for version * v042 audit changes for telemetry * remove version changes in telemetry audit
1 parent 3a774cf commit 28c2ce0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

telemetry/metrics.go

+2
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ type Metrics struct {
6464
prometheusEnabled bool
6565
}
6666

67+
// GatherResponse is the response type of registered metrics
6768
type GatherResponse struct {
6869
Metrics []byte
6970
ContentType string
7071
}
7172

73+
// New creates a new instance of Metrics
7274
func New(cfg Config) (*Metrics, error) {
7375
if !cfg.Enabled {
7476
return nil, nil

telemetry/wrapper.go

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const (
1313
MetricLabelNameModule = "module"
1414
)
1515

16+
// NewLabel creates a new instance of Label with name and value
1617
func NewLabel(name, value string) metrics.Label {
1718
return metrics.Label{Name: name, Value: value}
1819
}

0 commit comments

Comments
 (0)