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

Method parseError

expfmt/text_parse.go:535–540  ·  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

533// parseError sets p.err to a ParseError at the current line with the given
534// message.
535func (p *TextParser) parseError(msg string) {
536 p.err = ParseError{
537 Line: p.lineCount,
538 Msg: msg,
539 }
540}
541
542// skipBlankTab reads (and discards) bytes from p.buf until it encounters a byte
543// that is neither ' ' nor '\t'. That byte is left in p.currentByte.

Callers 11

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
readTokenAsLabelValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected