statsd input plugin correctly handles colons in data-dog tag values now (#1794)
* Code correctly handles colons in tag values now * Modified existing datadog tag test to include a tag value containing a colon
This commit is contained in:
committed by
Cameron Sparr
parent
f12368698b
commit
100501ba72
@@ -348,7 +348,7 @@ func (s *Statsd) parseStatsdLine(line string) error {
|
||||
tagstr := segment[1:]
|
||||
tags := strings.Split(tagstr, ",")
|
||||
for _, tag := range tags {
|
||||
ts := strings.Split(tag, ":")
|
||||
ts := strings.SplitN(tag, ":", 2)
|
||||
var k, v string
|
||||
switch len(ts) {
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user