mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
chore: fix some function names in comment
Signed-off-by: huochexizhan <huochexizhan@outlook.com>
This commit is contained in:
parent
101b1c307f
commit
4f48e76086
|
@ -388,7 +388,7 @@ func (p *OpenMetricsParser) setCTParseValues(ct int64, ctHashSet uint64, mfName
|
|||
p.skipCTSeries = skipCTSeries // Do we need to set it?
|
||||
}
|
||||
|
||||
// resetCtParseValues resets the parser to the state before CreatedTimestamp method was called.
|
||||
// resetCTParseValues resets the parser to the state before CreatedTimestamp method was called.
|
||||
func (p *OpenMetricsParser) resetCTParseValues() {
|
||||
p.ctHashSet = 0
|
||||
p.skipCTSeries = true
|
||||
|
|
|
@ -3443,7 +3443,7 @@ func handleVectorBinopError(err error, e *parser.BinaryExpr) annotations.Annotat
|
|||
return nil
|
||||
}
|
||||
|
||||
// groupingKey builds and returns the grouping key for the given metric and
|
||||
// generateGroupingKey builds and returns the grouping key for the given metric and
|
||||
// grouping labels.
|
||||
func generateGroupingKey(metric labels.Labels, grouping []string, without bool, buf []byte) (uint64, []byte) {
|
||||
if without {
|
||||
|
|
|
@ -110,7 +110,7 @@ const (
|
|||
Stopping
|
||||
)
|
||||
|
||||
// withStackTrace logs the stack trace in case the request panics. The function
|
||||
// withStackTracer logs the stack trace in case the request panics. The function
|
||||
// will re-raise the error which will then be handled by the net/http package.
|
||||
// It is needed because the go-kit log package doesn't manage properly the
|
||||
// panics from net/http (see https://github.com/go-kit/kit/issues/233).
|
||||
|
|
Loading…
Reference in a new issue