Skip to content

Commit

Permalink
Use a sentinel value rather than empty string for empty extras
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Oct 10, 2023
1 parent 7a84f40 commit 28305bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func MetricsMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
if typeahead {
labels = append(labels, "typeahead")
} else {
labels = append(labels, "")
labels = append(labels, "_none")
}

reqDur.WithLabelValues(labels...).Observe(elapsed)
Expand Down

0 comments on commit 28305bd

Please sign in to comment.