'What's label currying in Prometheus?
In Prometheus, there's label currying. Some example methods are like CurryWith().
What's the meaning of it? Sorry I didn't find any documentation for this.
Problem might be related to that English is not my native language, and I don't understand curry from the function name.
Thanks!
Solution 1:[1]
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.
Solution 2:[2]
It allows you to fill in some but not all label value. You can check it here: https://github.com/prometheus/client_golang/blob/master/prometheus/gauge.go#L246
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Wei Huang |
| Solution 2 | Shivangi Motwani |
