getsentry / sentry-go

The official Go SDK for Sentry (sentry.io)
https://docs.sentry.io/platforms/go/
MIT License
923 stars 213 forks source link

Package source code in Sentry #598

Open enumag opened 1 year ago

enumag commented 1 year ago

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.

cleptric commented 1 year ago

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

enumag commented 1 year ago

@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.

cleptric commented 1 year ago

Sorry, I miss-read the issue.

github-actions[bot] commented 1 year ago

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 🥀

enumag commented 1 year ago

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