Skip to content

Commit

Permalink
Update exporters/prometheus/exporter.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
fatsheep9146 and MrAlias committed Dec 1, 2022
1 parent e2fdf1c commit 282121f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/prometheus/exporter.go
Expand Up @@ -394,7 +394,7 @@ func validateMetrics(name, description string, metricType *dto.MetricType, mfs m
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 %q of instrument %q conflicts with existing type %q, 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 282121f

Please sign in to comment.