client_golang/prometheus/promhttp
beorn7 14730c70c0 promhttp: Bite the bullet and implement all 32 possible interface combos
As it turned out, it's not that esay to guess "common" combination of
interface upgrades. So I decided to just implement all 32 possible
combination of interface upgrades. (Only 16 with Go 1.7 and earlier.)

Clearly, this calls for code generation. But right now, we still need
to find out what's the best form of the code. For later additions,
implementing code generation might be useful.

Note that newDelegator is called for each HTTP request. Thus, this
commit aims to make the upgrade selection quick. (After the type
checks, it's just directly accessing an element in a slice.)
2017-06-02 19:03:08 +02: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 Instrument RoundTripper via middleware (#295) 2017-05-09 18:46:09 +02:00
http_test.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
instrument_client.go Instrument RoundTripper via middleware (#295) 2017-05-09 18:46:09 +02:00
instrument_client_1_8.go Instrument RoundTripper via middleware (#295) 2017-05-09 18:46:09 +02:00
instrument_client_1_8_test.go Improve promhttp tests 2017-05-10 19:49:36 +02:00
instrument_server.go promhttp: Bite the bullet and implement all 32 possible interface combos 2017-06-02 19:03:08 +02:00
instrument_server_test.go promhttp: Bite the bullet and implement all 32 possible interface combos 2017-06-02 19:03:08 +02:00