Skip to content

Commit

Permalink
Fix BenchmarkMeasureAndEmitMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Jul 12, 2022
1 parent c54c573 commit aff3572
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/netext/httpext/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,21 @@ func BenchmarkMeasureAndEmitMetrics(b *testing.B) {
logger := logrus.New()
logger.Level = logrus.DebugLevel

registry := metrics.NewRegistry()
state := &lib.State{
Options: lib.Options{
RunTags: &metrics.SampleTags{},
SystemTags: &metrics.DefaultSystemTagSet,
},
Samples: samples,
Logger: logger,
BuiltinMetrics: metrics.RegisterBuiltinMetrics(registry),
Samples: samples,
Logger: logger,
}
t := transport{
state: state,
ctx: ctx,
}

b.ResetTimer()
unfRequest := &unfinishedRequest{
tracer: &Tracer{},
response: &http.Response{
Expand Down

0 comments on commit aff3572

Please sign in to comment.