sentry-go icon indicating copy to clipboard operation
sentry-go copied to clipboard

Package source code in Sentry

Open enumag opened this issue 3 years ago • 5 comments

Summary

I successfully set up Sentry for my project and can see the errors there including stack traces. However while for my own code I can click and show a piece of the code around the line, the same isn't possible for the stack trace lines that point to a package - the first 7 lines in the screenshot are missing the toggling arrow on the right.

Screenshot from 2023-03-07 13-44-02

Is it possible to setup sentry in a way that the source code from packages would be available there as well?

Motivation

It would help understanding the context of the error.

enumag avatar Mar 07 '23 12:03 enumag

Have a look at https://docs.sentry.io/platforms/go/troubleshooting/#missing-stack-trace on how to enable source contexts. Refs #177

cleptric avatar Mar 07 '23 13:03 cleptric

@cleptric Thanks but I already found that before creating the issue. The https://docs.sentry.io/platforms/go/serverless/#source-context only contains an example how to add in my own sources but not how to make sentry correctly locate package sources.

enumag avatar Mar 07 '23 13:03 enumag

Sorry, I miss-read the issue.

cleptric avatar Mar 07 '23 13:03 cleptric

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Aug 15 '23 00:08 github-actions[bot]

Why was the backlog tag removed? This would be very useful.

enumag avatar Aug 15 '23 06:08 enumag