github
144 of 192 new or added lines in 17 files covered. (75.0%)
4 existing lines in 3 files now uncovered.10537 of 14213 relevant lines covered (74.14%)
4.83 hits per line
1 |
package otelhttpclient
|
|
2 |
|
|
3 |
import (
|
|
4 |
"net/http"
|
|
5 |
) |
|
6 |
|
|
NEW
|
func New(name string, client *http.Client) *http.Client { |
× |
NEW
|
if client == nil { |
× |
NEW
|
return &http.Client{
|
× |
NEW
|
Transport: NewHTTPTransport(nil, name),
|
× |
NEW
|
} |
× |
NEW
|
} |
× |
NEW
|
client.Transport = NewHTTPTransport(client.Transport, name) |
× |
NEW
|
return client
|
× |
15 |
} |