Skip to content

Commit

Permalink
Fix panic in otelhttptrace
Browse files Browse the repository at this point in the history
Wait100Continue trace event is sent here before "http.receive" phase which results with a panic
  • Loading branch information
Alkorin committed May 29, 2023
1 parent 75d0c13 commit d42e293
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (ct *clientTracer) got100Continue() {
func (ct *clientTracer) wait100Continue() {
span := ct.root
if ct.useSpans {
span = ct.span("http.receive")
span = ct.span("http.send")

Check warning on line 373 in instrumentation/net/http/httptrace/otelhttptrace/clienttrace.go

View check run for this annotation

Codecov / codecov/patch

instrumentation/net/http/httptrace/otelhttptrace/clienttrace.go#L373

Added line #L373 was not covered by tests
}
span.AddEvent("GOT 100 - Wait")
}
Expand Down

0 comments on commit d42e293

Please sign in to comment.