mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-24 20:36:24 +02:00
rename prometheus metrics and vars
Make names a little more consistent and align with naming docs at https://prometheus.io/docs/practices/naming/
This commit is contained in:
parent
4e97a7ea8f
commit
7f91379373
3 changed files with 22 additions and 19 deletions
|
|
@ -275,7 +275,7 @@ func exifOrientation(r io.Reader) (opt Options) {
|
|||
// transformImage modifies the image m based on the transformations specified
|
||||
// in opt.
|
||||
func transformImage(m image.Image, opt Options) image.Image {
|
||||
timer := prometheus.NewTimer(imageTransformationSummary)
|
||||
timer := prometheus.NewTimer(metricTransformationDuration)
|
||||
defer timer.ObserveDuration()
|
||||
|
||||
// Parse crop and resize parameters before applying any transforms.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue