Prometheus metrics

This commit is contained in:
DarthSim
2018-10-29 18:04:47 +06:00
parent 8030e0aa27
commit dd85087e6a
129 changed files with 32503 additions and 5 deletions

View File

@@ -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()