Skip to content

Commit

Permalink
Fixed test.
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
  • Loading branch information
bwplotka committed Aug 2, 2022
1 parent 094f97f commit 4e2a055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus/promhttp/instrument_server.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit 4e2a055

Please sign in to comment.