Jelajahi Sumber

Fix vips_allocs OTel metric unit

DarthSim 1 tahun lalu
induk
melakukan
dc86a5e3a2
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  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 or opacity when the source image is a TIFF with a float sample format.
 - 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 style injection into some SVGs.
 

+ 1 - 1
vips/vips.go

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