diff --git a/exporters/prometheus/exporter.go b/exporters/prometheus/exporter.go index 6d0d99bc4a3..1ac46eb5e44 100644 --- a/exporters/prometheus/exporter.go +++ b/exporters/prometheus/exporter.go @@ -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, ""