Skip to content

Commit

Permalink
[openvsx-proxy] Fix status counter metric
Browse files Browse the repository at this point in the history
/werft no-preview
  • Loading branch information
corneliusludmann authored and roboquat committed Oct 18, 2021
1 parent beed6cb commit 715a558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/openvsx-proxy/pkg/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (p *Prometheus) IncStatusCounter(r *http.Request, status string) {
path = strings.Join(s[:4], "/")
}
// don't track unexepected paths (e.g. requests from crawlers/bots)
if _, ok := expectedPaths[strings.TrimSuffix(path, "/")]; !ok || path != "/" {
if _, ok := expectedPaths[strings.TrimSuffix(path, "/")]; !ok {
log.WithField("path", path).Debug("unexpected path")
path = "(other)"
}
Expand Down

0 comments on commit 715a558

Please sign in to comment.