quay / clair

Vulnerability Static Analysis for Containers
https://quay.github.io/clair/
Apache License 2.0
10.36k stars 1.16k forks source link

httptransort: fix http metrics #1985

Closed hdonnay closed 9 months ago

hdonnay commented 9 months ago

The runtime.Goexit usage messes with the prometheus metrics, so this inserts a handler to catch unwinds using the documented http.ErrAbortHandler.