Skip to content

Commit

Permalink
v043 audit changes for telemetry/ (#9297)
Browse files Browse the repository at this point in the history
* v043 audit changes for version

* v042 audit changes for telemetry

* remove version changes in telemetry audit
  • Loading branch information
likhita-809 authored May 11, 2021
1 parent 3a774cf commit 28c2ce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions telemetry/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ type Metrics struct {
prometheusEnabled bool
}

// GatherResponse is the response type of registered metrics
type GatherResponse struct {
Metrics []byte
ContentType string
}

// New creates a new instance of Metrics
func New(cfg Config) (*Metrics, error) {
if !cfg.Enabled {
return nil, nil
Expand Down
1 change: 1 addition & 0 deletions telemetry/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
MetricLabelNameModule = "module"
)

// NewLabel creates a new instance of Label with name and value
func NewLabel(name, value string) metrics.Label {
return metrics.Label{Name: name, Value: value}
}
Expand Down

0 comments on commit 28c2ce0

Please sign in to comment.