client_golang/prometheus/promhttp
Igor Drozdov 93cf5d4f5f
Implement Unwrap() for responseWriterDelegator (#1480)
If the ResponseWriter implements any of the following methods,
the ResponseController will call them as appropriate:

Flush()
FlushError() error // alternative Flush returning an error
Hijack() (net.Conn, *bufio.ReadWriter, error)
SetReadDeadline(deadline time.Time) error
SetWriteDeadline(deadline time.Time) error
EnableFullDuplex() error

If the ResponseWriter doesn't implement the methods,
the ResponseController will call Unwrap() method until it
finds a ResponseWriter in the chain

This commit implements Unwrap() method to simply return the
wrapped ResponseWriter

Signed-off-by: Igor Drozdov <ihardrozdov@gmail.com>
2024-03-28 14:42:34 +01:00
..
delegator.go Implement Unwrap() for responseWriterDelegator (#1480) 2024-03-28 14:42:34 +01:00
delegator_test.go Implement Unwrap() for responseWriterDelegator (#1480) 2024-03-28 14:42:34 +01:00
http.go add process start time header to client_golang prometheus (#1278) 2023-05-26 12:58:36 +01:00
http_test.go Do not allocate memory when there's no constraints (#1296) 2023-06-27 12:21:36 +01:00
instrument_client.go Revert "Remove unnecessary check if label is nil in observeWithExemplar (#1235)" 2023-05-03 09:41:26 +01:00
instrument_client_test.go Fix double-counting bug in promhttp.InstrumentRoundTripperCounter (#1118) 2022-08-22 08:28:46 +03:00
instrument_server.go Fix data-race in metric without code and method but with `WithLabelFromCtx` (#1318) 2023-08-01 17:11:17 +01:00
instrument_server_test.go Fix data-race in metric without code and method but with `WithLabelFromCtx` (#1318) 2023-08-01 17:11:17 +01:00
option.go Added clarification. 2023-05-03 09:41:34 +01:00
option_test.go Add possibility to dynamically get label values for http instrumentation (#1066) 2023-01-19 10:19:08 +00:00