client_golang/prometheus/promhttp
beorn7 dd20712622 Allow currying of metric vec's
The idea behind it is described in detail in
https://github.com/prometheus/client_golang/issues/320 .

This commit also updates the example given in
promhttp/instrument_server_test.go , which nicely illustrates the
benefit of this change.

So far, currying could be emulated by creating different metric vec's
with different values in their ConstLabels. This was quite difficult
to grasp - which is essentially what was done in the example mentioned
above. Now that this use case can be solved without ConstLabels, we
can safely declare ConstLabels as rarely used. (Perhaps we can
deprecate them entirely one day, but I'll take a raincheck on that
when the changes of v0.10 have materialized.) This commit thus also
updates the ConstLabel doc comments in the various Opts. (It contained
fairly outdated stuff anyway.)
2017-12-22 15:56:11 +01:00
..
delegator.go promhttp: Bite the bullet and implement all 32 possible interface combos 2017-06-02 19:03:08 +02:00
delegator_1_8.go promhttp: Bite the bullet and implement all 32 possible interface combos 2017-06-02 19:03:08 +02:00
delegator_pre_1_8.go promhttp: Bite the bullet and implement all 32 possible interface combos 2017-06-02 19:03:08 +02:00
http.go Fix error reporting bug 2017-08-31 15:10:58 +02:00
http_test.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
instrument_client.go Document the use of Go1.9+ for monotonic time where applicable 2017-06-29 16:07:12 +02:00
instrument_client_1_8.go Document the use of Go1.9+ for monotonic time where applicable 2017-06-29 16:07:12 +02:00
instrument_client_1_8_test.go Improve promhttp tests 2017-05-10 19:49:36 +02:00
instrument_server.go Document the use of Go1.9+ for monotonic time where applicable 2017-06-29 16:07:12 +02:00
instrument_server_test.go Allow currying of metric vec's 2017-12-22 15:56:11 +01:00