浏览代码

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 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,
 	)