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

Function isValidLabelNameStart

expfmt/text_parse.go:946–948  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

944}
945
946func isValidLabelNameStart(b byte) bool {
947 return (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || b == '_' || b == '"'
948}
949
950func isValidLabelNameContinuation(b byte, quoted bool) bool {
951 return isValidLabelNameStart(b) || (b >= '0' && b <= '9') || (quoted && utf8.ValidString(string(b)))

Callers 3

readTokenAsLabelNameMethod · 0.85
isValidMetricNameStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected