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

Function isValidLabelNameContinuation

expfmt/text_parse.go:950–952  ·  view source on GitHub ↗
(b byte, quoted bool)

Source from the content-addressed store, hash-verified

948}
949
950func isValidLabelNameContinuation(b byte, quoted bool) bool {
951 return isValidLabelNameStart(b) || (b >= '0' && b <= '9') || (quoted && utf8.ValidString(string(b)))
952}
953
954func isValidMetricNameStart(b byte) bool {
955 return isValidLabelNameStart(b) || b == ':'

Callers 2

readTokenAsLabelNameMethod · 0.85

Calls 1

isValidLabelNameStartFunction · 0.85

Tested by

no test coverage detected