From f9d92520907b710e675e58b008849924d33b49ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0nan=C3=A7=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 10 Oct 2024 11:12:24 -0400 Subject: [PATCH] Fix MetricEvent.Tag input --- common/page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/page.go b/common/page.go index 8c6505253..a055d33b0 100644 --- a/common/page.go +++ b/common/page.go @@ -445,7 +445,7 @@ type K6BrowserCheckRegEx func(pattern, url string) (bool, error) // Tag will find the first match given the URLTagPatterns and the URL from // the metric tag and update the name field. func (e *MetricEvent) Tag(matchesRegex K6BrowserCheckRegEx, patterns URLTagPatterns) error { - for _, o := range overrides.URLs { + for _, o := range patterns.URLs { name := strings.TrimSpace(o.TagName) if name == "" { return fmt.Errorf("name %q is invalid", o.TagName)