MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / LabelKeys

Method LabelKeys

base/stats.go:960–970  ·  view source on GitHub ↗

LabelKeys returns the label keys for the stat in deterministic order. Currently only used for the stat metadata exporter tool.

()

Source from the content-addressed store, hash-verified

958// LabelKeys returns the label keys for the stat in deterministic order.
959// Currently only used for the stat metadata exporter tool.
960func (s SgwStat) LabelKeys() []string {
961 labelKeys := make([]string, 0, len(s.labels))
962 for labelKey := range s.labels {
963 labelKeys = append(labelKeys, labelKey)
964 }
965
966 // Sort the label keys so that the order is deterministic
967 slices.Sort(labelKeys)
968
969 return labelKeys
970}
971
972// ValueTypeString returns the string representation of the prometheus.ValueType
973// Currently only used for the stat metadata exporter tool.

Callers

nothing calls this directly

Calls 1

SortMethod · 0.80

Tested by

no test coverage detected