Skip to content

Commit 231c8ad

Browse files
author
Patrick Koss
committed
fix metrics endpoint
1 parent 217702a commit 231c8ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ out/report.json:
5454
go test -race ./... -coverprofile=out/cover.out --json | tee "$(@)"
5555

5656
run:
57-
go run cmd/webhook
57+
go run cmd/webhook/main.go
5858

5959
.PHONY: clean
6060
clean:

pkg/api/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewMetricsMiddleware(collector metrics_collector.HttpApiMetrics) fiber.Hand
2626
}
2727

2828
method := strings.Clone(c.Method())
29-
path := c.Path()
29+
path := strings.Clone(c.Path())
3030
status := c.Response().StatusCode()
3131

3232
collector.CollectRequest(method, path, status)

0 commit comments

Comments
 (0)