Implement inspect data API v2 (#15474)

Co-authored-by: Klaus Post <klauspost@gmail.com>
This commit is contained in:
Anis Elleuch
2022-11-02 21:36:38 +01:00
committed by GitHub
parent d2c9a9e395
commit 7e73fc2870
14 changed files with 1648 additions and 162 deletions

View File

@@ -315,12 +315,12 @@ func (sys *NotificationSys) DownloadProfilingData(ctx context.Context, writer io
// Send profiling data to zip as file
for typ, data := range data {
err := embedFileInZip(zipWriter, fmt.Sprintf("profile-%s-%s", thisAddr, typ), data)
if err != nil {
logger.LogIf(ctx, err)
}
logger.LogIf(ctx, err)
}
if b := getClusterMetaInfo(ctx); len(b) > 0 {
logger.LogIf(ctx, embedFileInZip(zipWriter, "cluster.info", b))
}
appendClusterMetaInfoToZip(ctx, zipWriter)
return
}