ansrivas / fiberprometheus

prometheus middleware for Fiber
MIT License
166 stars 37 forks source link

If app throws error 403 middleware places metrics with path="/" #175

Closed maksymlumen closed 1 year ago

maksymlumen commented 1 year ago

Shouldn't it be ctx.Path() here, instead of ctx.Route().Path ?

https://github.com/ansrivas/fiberprometheus/blob/master/middleware.go#L194

maksymlumen commented 1 year ago

I would like to see in metrics the path of resources where access was forbidden. Maybe there is another way to do that? Thanks.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 10 days with no activity.