Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support uploading Go source code with a release #740

Open
eric opened this issue Oct 26, 2023 · 8 comments
Open

Support uploading Go source code with a release #740

eric opened this issue Oct 26, 2023 · 8 comments

Comments

@eric
Copy link

eric commented Oct 26, 2023

Summary

I would like to see support for uploading Go source code with a release.

Motivation

We are not able to package the source code with our binary but still would like to have the improved experience of seeing the source code in Sentry.

Additional Context

We ship the binary to customers and do not want to provide them with the source code.

@cleptric
Copy link
Member

We discussed this internally and would consider adding this in the future. I can't give you any timeline, though.

@eric
Copy link
Author

eric commented Oct 30, 2023

Not having this greatly reduces the usefulness of Sentry for Go for us. It involves manually looking at the files in an editor, because there is no linking to github, no context, and the stack frames as they are listed make it difficult to capture both the file name and the line number at the same time.

@cleptric
Copy link
Member

You would need to create a source bundle and upload it at compile time. And then you would also need to upload debug files, which is odd in Go, that include a debug ID so we can map your code to the event in Sentry. None of this is currently supported in Go, so it takes different teams to get this going. Hence it's unlikely that we will get to this in a short timeframe.

Can you expand on the stack trace layout? What exactly bothers you with the visuals?

@eric
Copy link
Author

eric commented Oct 30, 2023

screenshot-2023-10-30-11 29 00@2x

Not having the format of <file>:<line> means that I can't paste it into a VSCode Quick Open dialog or anything like that.

Honestly I've said this all over the place, but it would just be really nice if I could map some file/package locations to GitHub URLs to at least link to the code. It's terribly frustrating to have literally nothing that can easily get me to the code to look at what's going wrong.

None of this is currently supported in Go, so it takes different teams to get this going. Hence it's unlikely that we will get to this in a short timeframe.

I understand that it doesn't sound like you have many customers that you know of that are shipping Go binaries to places that can't have access to the source code, but not having this functionality severely limits the usefulness of the product to those of us who do. Is this on the radar of the wider PM org to prioritize this?

@cleptric
Copy link
Member

I filled part of this as getsentry/sentry#59030 and pinged the PM involved. I totally agree btw, this is crazy bad!

Is this on the radar of the wider PM org to prioritize this?

Yep, it is. But as you also mentioned, we don't have many customers with this use case 🙁
But I do have a project where it bothers me to include my source code in the docker container to get source context working, so rest assured, this is not just a you issue!

This comment was marked as outdated.

@eric
Copy link
Author

eric commented Nov 21, 2023

It sure would be great if someone could handle this before the bot closes it.

@cleptric
Copy link
Member

cleptric commented Feb 7, 2024

We did ship an update to our stack trace view, which now lets you map your stack trace to GitHub without the need for having source context availiable.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants