Skip to content

Commit

Permalink
reporter: Fix disabling debuginfo uploads (#3023)
Browse files Browse the repository at this point in the history
  • Loading branch information
brancz authored Jan 21, 2025
2 parents b9792b3 + e3e0fc2 commit 7375d8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reporter/parca_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7375d8d

Please sign in to comment.