Prometheus 中的标签是什么?

What's label currying in Prometheus?

在 Prometheus 中,有标签柯里化。一些示例方法如 CurryWith().

这是什么意思?抱歉,我没有找到这方面的任何文档。

问题可能与英语不是我的母语有关,我无法从函数名称中理解curry

谢谢!

它允许您填写一些但不是全部的标签值。 您可以在这里查看:https://github.com/prometheus/client_golang/blob/master/prometheus/gauge.go#L246

In mathematics and computer science, currying is the technique of converting a function that takes multiple arguments into a sequence of functions that each takes a single argument.

发件人:https://en.wikipedia.org/wiki/Currying