Преглед на файлове

Fix vips_allocs OTel metric unit

DarthSim преди 1 година
родител
ревизия
dc86a5e3a2
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      CHANGELOG.md
  2. 1 1
      vips/vips.go

+ 1 - 0
CHANGELOG.md

@@ -19,6 +19,7 @@
 - Fix wrong colors when the source image has a linear colorspace.
 - Fix wrong colors when the source image has a linear colorspace.
 - Fix wrong colors or opacity when the source image is a TIFF with a float sample format.
 - Fix wrong colors or opacity when the source image is a TIFF with a float sample format.
 - Fix crashes during processing of large animated WebPs.
 - Fix crashes during processing of large animated WebPs.
+- Fix `vips_allocs` OTel metric unit (was `By`, fixed to `1`).
 - (pro) Fix generating thumbnails for WebM videos with transparency.
 - (pro) Fix generating thumbnails for WebM videos with transparency.
 - (pro) Fix style injection into some SVGs.
 - (pro) Fix style injection into some SVGs.
 
 

+ 1 - 1
vips/vips.go

@@ -130,7 +130,7 @@ func Init() error {
 	otel.AddGaugeFunc(
 	otel.AddGaugeFunc(
 		"vips_allocs",
 		"vips_allocs",
 		"A gauge of the number of active vips allocations.",
 		"A gauge of the number of active vips allocations.",
-		"By",
+		"1",
 		GetAllocs,
 		GetAllocs,
 	)
 	)