client_golang/prometheus/promhttp
beorn7 ad58180fde Add WriteHeader call to Flush
Flush is another of the methods that will call WriteHeader if it
hasn't happened yet. Since we want to call observeWriteHeader (if
set), we need to do the WriteHeader call already here, similar to what
we have done in Write and ReadFrom.

This commit also adds comments explaining the above to not tempt
developers to remove the WriteHeader call.

Signed-off-by: beorn7 <beorn@grafana.com>
2019-08-19 18:19:23 +02:00
..
delegator.go Add WriteHeader call to Flush 2019-08-19 18:19:23 +02:00
http.go Add an error counter for internal errors in the HTTP handler 2019-06-05 20:07:49 +02:00
http_test.go Add test for the new promhttp_metric_handler_errors_total metric 2019-06-06 16:56:58 +02:00
instrument_client.go Make use of pre-existing context in InstrumentRoundTripperTrace 2019-05-16 17:52:19 +02:00
instrument_client_test.go Add test to expose #580 2019-05-16 17:52:19 +02:00
instrument_server.go Take into account curried labels in promhttp 2017-12-24 14:39:06 +01:00
instrument_server_test.go Add .golangci.yml 2019-04-25 10:38:07 +02:00