Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Nov 20, 2024
1 parent ff7807d commit a1f6f08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions server/v2/api/telemetry/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ type GatherResponse struct {

// NewMetrics creates a new instance of Metrics
func NewMetrics(cfg *Config) (*Metrics, error) {
if !cfg.Enable {
return nil, nil
}

if numGlobalLabels := len(cfg.GlobalLabels); numGlobalLabels > 0 {
parsedGlobalLabels := make([]metrics.Label, numGlobalLabels)
Expand Down
2 changes: 1 addition & 1 deletion telemetry/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func IsTelemetryEnabled() bool {
return globalTelemetryEnabled
}

// SetTelemetryEnabled allows for the global telemetry enabled state to be set.
// EnableTelemetry allows for the global telemetry enabled state to be set.
func EnableTelemetry() {
globalTelemetryEnabled = true
}
Expand Down

0 comments on commit a1f6f08

Please sign in to comment.