mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Prometheus metrics
This commit is contained in:
@@ -225,6 +225,10 @@ func processImage(ctx context.Context) ([]byte, error) {
|
||||
defer newRelicCancel()
|
||||
}
|
||||
|
||||
if prometheusEnabled {
|
||||
defer startPrometheusDuration(prometheusProcessingDuration)()
|
||||
}
|
||||
|
||||
defer C.vips_cleanup()
|
||||
|
||||
data := getImageData(ctx).Bytes()
|
||||
|
Reference in New Issue
Block a user