Update Prometheus client to latest version

Also let Prometheus export process and Go metrics
This commit is contained in:
Bryan Boreham committed 2020-08-04 10:11:28 +00:00
1 parent 9439606c57
commit d14502e071
852 files changed
+115709 -101480

No files matched your search

+2 -3
View File
@@ -103,14 +103,14 @@ func (stream *Stream) Flush() error {
if stream.Error != nil {
return stream.Error
}
n, err := stream.out.Write(stream.buf)
_, err := stream.out.Write(stream.buf)
if err != nil {
if stream.Error == nil {
stream.Error = err
}
return err
}
stream.buf = stream.buf[n:]
stream.buf = stream.buf[:0]
return nil
}
@@ -177,7 +177,6 @@ func (stream *Stream) WriteEmptyObject() {
func (stream *Stream) WriteMore() {
stream.writeByte(',')
stream.writeIndention(0)
stream.Flush()
}
// WriteArrayStart write [ with possible indention