Skip to content

Commit

Permalink
Fix MetricEvent.Tag input
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Oct 10, 2024
1 parent ebb1391 commit f9d9252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9d9252

Please sign in to comment.