Skip to content

Commit b4353f5

Browse files
committed
fix: non-constant format string in call to fmt fprintf
1 parent 4f60131 commit b4353f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/export/prometheus/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (w *expWriter) writeSample(val interface{}, labels ...string) {
9090
panic("developer error: incorrect metrics label count")
9191
}
9292

93-
fmt.Fprintf(w.w, w.name)
93+
fmt.Fprint(w.w, w.name)
9494

9595
if len(w.labels) > 0 {
9696
fmt.Fprintf(w.w, "{")

0 commit comments

Comments
 (0)