MCPcopy
hub / github.com/containerd/containerd / DumpTraces

Function DumpTraces

pkg/httpdbg/debug.go:112–117  ·  view source on GitHub ↗

DumpTraces attaches HTTP events tracer to the client's transport.

(ctx context.Context, client *http.Client)

Source from the content-addressed store, hash-verified

110
111// DumpTraces attaches HTTP events tracer to the client's transport.
112func DumpTraces(ctx context.Context, client *http.Client) {
113 client.Transport = traceTransport{
114 tracer: NewDebugClientTrace(ctx),
115 transport: client.Transport,
116 }
117}
118
119// WithClientTrace wraps context with a httptrace.ClientTrace for debugging.
120func WithClientTrace(ctx context.Context) context.Context {

Callers 2

NewOCIRegistryFunction · 0.92
UnmarshalAnyMethod · 0.92

Calls 1

NewDebugClientTraceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…