Skip to content

Commit a5b3380

Browse files
committed
Fixed test.
Signed-off-by: Bartlomiej Plotka <[email protected]>
1 parent 250120d commit a5b3380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/promhttp/instrument_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func InstrumentHandlerCounter(counter *prometheus.CounterVec, next http.Handler,
183183
//
184184
// See the example for InstrumentHandlerDuration for example usage.
185185
func InstrumentHandlerTimeToWriteHeader(obs prometheus.ObserverVec, next http.Handler, opts ...Option) http.HandlerFunc {
186-
mwOpts := &option{}
186+
mwOpts := &option{getExemplarFn: func(ctx context.Context) prometheus.Labels { return nil }}
187187
for _, o := range opts {
188188
o(mwOpts)
189189
}

0 commit comments

Comments
 (0)