httpclient: Add OTel tracing automatically when needed (#2772)

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
This commit is contained in:
Martin Atkins
2025-05-09 02:16:38 -07:00
committed by GitHub
parent 11694a6ac0
commit 47875921a1
30 changed files with 154 additions and 134 deletions

View File

@@ -75,7 +75,7 @@ func TestNew_userAgent(t *testing.T) {
} {
t.Run(fmt.Sprintf("%d %s", i, c.expected), func(t *testing.T) {
actualUserAgent = ""
cli := New()
cli := New(t.Context())
err := c.request(cli)
if err != nil {
t.Fatal(err)