Troubleshooting
Troubleshooting common Go Issues
If your Go stack traces are missing source lines, the most common cause is that SCM Source Context isn't fully set up for the project.
Check that:
- your project has a supported SCM integration installed
- your code mappings point to the correct repository paths
- source context is enabled for the project
- the event is associated with a release or branch that Sentry can resolve through your code mappings
For the full setup, see Source Context.
Sentry's Go SDK middleware has to modify the request context in order to function correctly. This results in a shallow copy of the request being passed to upstream handlers. This means that temporary files created from calling ParseMultipartForm on this request won't automatically be cleaned up. It's important to clean these files up by calling request.Multipart.RemoveAll() after.
See the multipart documentation for more information.
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").