func toSpectatorId()

in spectator/meter/id.go [145:155]


func toSpectatorId(name string, tags map[string]string) string {
	result := replaceInvalidCharacters(name)

	for k, v := range tags {
		k = replaceInvalidCharacters(k)
		v = replaceInvalidCharacters(v)
		result += fmt.Sprintf(",%s=%s", k, v)
	}

	return result
}