Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions instrumentation/net/http/otelhttp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"strings"
)

// Deprecated: This will be deleted in the future.
//
// DefaultClient is the default Client and is used by Get, Head, Post and PostForm.
// Please be careful of initialization order - for example, if you change
// the global propagator, the DefaultClient might still be using the old one.
var DefaultClient = &http.Client{Transport: NewTransport(http.DefaultTransport)}

Check failure on line 19 in instrumentation/net/http/otelhttp/client.go

View workflow job for this annotation

GitHub Actions / lint

exported: exported var DefaultClient should have comment or be unexported (revive)

Check failure on line 19 in instrumentation/net/http/otelhttp/client.go

View workflow job for this annotation

GitHub Actions / lint

exported: exported var DefaultClient should have comment or be unexported (revive)

// Get is a convenient replacement for http.Get that adds a span around the request.
func Get(ctx context.Context, targetURL string) (resp *http.Response, err error) {
Expand Down
Loading