MCPcopy Index your code
hub / github.com/docker/docker-agent / TracedDefaultClient

Function TracedDefaultClient

pkg/httpclient/client.go:95–97  ·  view source on GitHub ↗

TracedDefaultClient returns an `http.Client` equivalent to `http.DefaultClient` but with the default transport wrapped via `WrapWithOTel`. Use as a drop-in replacement at call sites that previously did `http.DefaultClient.Do(req)` so OAuth metadata fetches, fetch-tool requests, registry probes, and

()

Source from the content-addressed store, hash-verified

93// fetch-tool requests, registry probes, and similar one-off HTTP calls
94// chain into the active trace.
95func TracedDefaultClient() *http.Client {
96 return &http.Client{Transport: WrapWithOTel(http.DefaultTransport)}
97}
98
99// TracedClient returns a configurable `http.Client` with the default
100// transport already wrapped via `WrapWithOTel`. The supplied options

Callers

nothing calls this directly

Calls 1

WrapWithOTelFunction · 0.85

Tested by

no test coverage detected