chore: fix some function names in comment

Signed-off-by: huochexizhan <huochexizhan@outlook.com>
This commit is contained in:
huochexizhan 2024-11-19 12:02:10 +08:00
parent 101b1c307f
commit 4f48e76086
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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).