Skip to content

Commit

Permalink
fix BenchmarkStartRequestSpan: call tracer.Start
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoffl01 committed Dec 17, 2024
1 parent 18b1ce1 commit e6fef16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/internal/httptrace/httptrace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ func BenchmarkStartRequestSpan(b *testing.B) {
b.Errorf("Failed to create request: %v", err)
return
}

mt := mocktracer.Start()
defer mt.Stop()
opts := []ddtrace.StartSpanOption{
tracer.ServiceName("SomeService"),
tracer.ResourceName("SomeResource"),
Expand Down

0 comments on commit e6fef16

Please sign in to comment.