From e3e0fc2ea2b6a5ba854b5764078b500c1e52302c Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Tue, 21 Jan 2025 21:23:11 +0100 Subject: [PATCH] reporter: Fix disabling debuginfo uploads --- reporter/parca_reporter.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reporter/parca_reporter.go b/reporter/parca_reporter.go index 3248ff1ccc..a90ba97952 100644 --- a/reporter/parca_reporter.go +++ b/reporter/parca_reporter.go @@ -256,7 +256,9 @@ func (r *ParcaReporter) ExecutableMetadata(args *reporter.ExecutableMetadataArgs } // Always attempt to upload, the uploader is responsible for deduplication. - r.uploader.Upload(context.TODO(), args.FileID, args.GnuBuildID, args.Open) + if !r.disableSymbolUpload { + r.uploader.Upload(context.TODO(), args.FileID, args.GnuBuildID, args.Open) + } if _, exists := r.executables.Get(args.FileID); exists { return