We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8f520 commit dc12c69Copy full SHA for dc12c69
api.go
@@ -22,6 +22,7 @@ type Config struct {
22
ProfileTypes []ProfileType
23
DisableGCRuns bool // this will disable automatic runtime.GC runs between getting the heap profiles
24
HTTPHeaders map[string]string
25
+ HTTPClient remote.HTTPClient
26
27
// Deprecated: the field will be removed in future releases.
28
// Use BasicAuthUser and BasicAuthPassword instead.
@@ -63,6 +64,7 @@ func Start(cfg Config) (*Profiler, error) {
63
64
BasicAuthUser: cfg.BasicAuthUser,
65
BasicAuthPassword: cfg.BasicAuthPassword,
66
HTTPHeaders: cfg.HTTPHeaders,
67
+ HTTPClient: cfg.HTTPClient,
68
Address: cfg.ServerAddress,
69
Threads: 5, // per each profile type upload
70
Timeout: 30 * time.Second,
0 commit comments