Code correctly handles colons in tag values now
This commit is contained in:
parent
6648c101dd
commit
9692e7e075
|
@ -348,7 +348,7 @@ func (s *Statsd) parseStatsdLine(line string) error {
|
||||||
tagstr := segment[1:]
|
tagstr := segment[1:]
|
||||||
tags := strings.Split(tagstr, ",")
|
tags := strings.Split(tagstr, ",")
|
||||||
for _, tag := range tags {
|
for _, tag := range tags {
|
||||||
ts := strings.Split(tag, ":")
|
ts := strings.SplitN(tag, ":", 2)
|
||||||
var k, v string
|
var k, v string
|
||||||
switch len(ts) {
|
switch len(ts) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in New Issue