From 4e2a055cf955f8096f622e7494c73b114f8e521f Mon Sep 17 00:00:00 2001 From: Bartlomiej Plotka Date: Wed, 18 May 2022 23:20:22 +0200 Subject: [PATCH] Fixed test. Signed-off-by: Bartlomiej Plotka --- prometheus/promhttp/instrument_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/promhttp/instrument_server.go b/prometheus/promhttp/instrument_server.go index 3219c7a0b..4da7bda85 100644 --- a/prometheus/promhttp/instrument_server.go +++ b/prometheus/promhttp/instrument_server.go @@ -183,7 +183,7 @@ func InstrumentHandlerCounter(counter *prometheus.CounterVec, next http.Handler, // // See the example for InstrumentHandlerDuration for example usage. func InstrumentHandlerTimeToWriteHeader(obs prometheus.ObserverVec, next http.Handler, opts ...Option) http.HandlerFunc { - mwOpts := &option{} + mwOpts := &option{getExemplarFn: func(ctx context.Context) prometheus.Labels { return nil }} for _, o := range opts { o(mwOpts) }