Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 committed Nov 25, 2022
1 parent 1e72b9d commit 13c0449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporters/prometheus/exporter.go
Expand Up @@ -390,11 +390,11 @@ func validateMetrics(name, description string, metricType *dto.MetricType, mfs m
if emf.GetType() == dto.MetricType_HISTOGRAM || *metricType == dto.MetricType_HISTOGRAM {
return false, ""
}
otel.Handle(fmt.Errorf("The description '%s' of instrument '%s' conflicts with existing description '%s', override with existing one.", description, name, emf.GetHelp()))
otel.Handle(fmt.Errorf("the description '%s' of instrument '%s' conflicts with existing description '%s', override with existing one", description, name, emf.GetHelp()))
return false, emf.GetHelp()
}
if emf.GetType() != *metricType {
otel.Handle(fmt.Errorf("The type '%s' of instrument '%s' conflicts with existing type '%s', drop the new one. Please use a view that selects this instrument, and rename to a different name.", *metricType, name, emf.GetType()))
otel.Handle(fmt.Errorf("the type '%s' of instrument '%s' conflicts with existing type '%s', drop the new one. Please use a view that selects this instrument, and rename to a different name", *metricType, name, emf.GetType()))
return true, ""
}
return false, ""
Expand Down

0 comments on commit 13c0449

Please sign in to comment.