There is only one of leak that I have screenshoted (I have watched few different points):
ROUTINE ======================== github.com/stackimpact/stackimpact-go/internal.(*APIRequest).post in /home/go/.gvm/pkgsets/go1.7/global/src/git
hub.com/stackimpact/stackimpact-go/internal/api_request.go
512.14kB 478.35MB (flat, cum) 13.72% of Total
. . 24: return ar
. . 25:}
. . 26:
. . 27:func (ar *APIRequest) post(endpoint string, payload map[string]interface{}) (map[string]interface{}, error) {
. . 28: reqBody := map[string]interface{}{
512.14kB 512.14kB 29: "runtime_type": "go",
. . 30: "runtime_version": runtime.Version(),
. . 31: "agent_version": AgentVersion,
. . 32: "app_name": ar.agent.AppName,
. . 33: "app_version": ar.agent.AppVersion,
. . 34: "app_environment": ar.agent.AppEnvironment,
. . 35: "host_name": ar.agent.HostName,
. . 36: "build_id": ar.agent.buildId,
. . 37: "run_id": ar.agent.runId,
. . 38: "run_ts": ar.agent.runTs,
. . 39: "sent_at": time.Now().Unix(),
. 8.02MB 40: "payload": payload,
. . 41: }
. . 42:
. . 43: reqBodyJson, _ := json.Marshal(reqBody)
. . 44:
. 469.83MB 45: var buf bytes.Buffer
. . 46: w := gzip.NewWriter(&buf)
. . 47: w.Write(reqBodyJson)
. . 48: w.Close()
. . 49:
. . 50: url := ar.agent.DashboardAddress + "/agent/v1/" + endpoint