From c844268f45903ae67a4325570dd7eed77940c23d Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Fri, 20 Oct 2023 11:20:04 +0200 Subject: [PATCH] pkg/scrape: Fix scraping without executable info --- pkg/scrape/scrape.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scrape/scrape.go b/pkg/scrape/scrape.go index 7f44ad958a2..f57960061df 100644 --- a/pkg/scrape/scrape.go +++ b/pkg/scrape/scrape.go @@ -502,7 +502,7 @@ mainLoop: continue } - executableInfo := []*profilepb.ExecutableInfo{} + var executableInfo []*profilepb.ExecutableInfo for _, comment := range p.Comments { if strings.HasPrefix(comment, "executableInfo=") { ei, err := parseExecutableInfo(comment)