MCPcopy Create free account
hub / github.com/prometheus/common / parseError

Method parseError

expfmt/text_parse.go:689–694  ·  view source on GitHub ↗

parseError sets p.err to a ParseError at the current line with the given message.

(msg string)

Source from the content-addressed store, hash-verified

687// parseError sets p.err to a ParseError at the current line with the given
688// message.
689func (p *TextParser) parseError(msg string) {
690 p.err = ParseError{
691 Line: p.lineCount,
692 Msg: msg,
693 }
694}
695
696// skipBlankTab reads (and discards) bytes from p.buf until it encounters a byte
697// that is neither ' ' nor '\t'. That byte is left in p.currentByte.

Callers 14

TextToMetricFamiliesMethod · 0.95
startCommentMethod · 0.95
readingMetricNameMethod · 0.95
startLabelNameMethod · 0.95
startLabelValueMethod · 0.95
readingValueMethod · 0.95
startTimestampMethod · 0.95
readingHelpMethod · 0.95
readingTypeMethod · 0.95
readTokenUntilNewlineMethod · 0.95
readTokenAsMetricNameMethod · 0.95
readTokenAsLabelNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected