From ba68944beca543d274fcbba5ca0142f8840fc551 Mon Sep 17 00:00:00 2001 From: Greg Chambers Date: Sun, 2 Jun 2024 13:42:16 -0700 Subject: [PATCH] Made dogstatsd tag check consistent with previous logic Signed-off-by: Greg Chambers --- pkg/line/line.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/line/line.go b/pkg/line/line.go index b051f6f..949a5ea 100644 --- a/pkg/line/line.go +++ b/pkg/line/line.go @@ -217,7 +217,7 @@ func (p *Parser) LineToEvents(line string, sampleErrors prometheus.CounterVec, s labels := map[string]string{} metric := p.parseNameAndTags(elements[0], labels, tagErrors, logger) - usingDogStatsDTags := strings.Contains(line, "|#") + usingDogStatsDTags := strings.Contains(elements[1], "|#") if usingDogStatsDTags && len(labels) > 0 { // using DogStatsD tags