getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
336 stars 1.47k forks source link

[Stack Trace Links] No Explanation Given Regarding Source Context #6295

Open souredoutlook opened 1 year ago

souredoutlook commented 1 year ago

Core or SDK?

Core Sentry product

Which part? Which one?

https://docs.sentry.io/product/sentry-basics/integrate-frontend/configure-scms/#step-4-using-stack-trace-links

Description

Stack trace linking requires the following:

Some SDKs report line number, column and file name in a way that would suggest stack trace linking should work. Even with properly configured code mapping.

However we don't mention source context, how to determine if it exists for an issue, and why it's important for stack trace linking any where in our docs.

Suggested Solution

Add troubleshooting this page, or the SCMS guide pages that support stack trace linking - that explains the signifcance of source context.

Example SDK generated events where this question comes up:

Edit:

From our docs we explicitly don't support C# or Java only the following languages:

Ruby, Python, Php, Node, JavaScript, Go and Elixir

This was explained internally as both a problem with how stack traces for the above languages can lack "path" information (Java, C#) but also source context (Go when running without source bundles).

┆Issue is synchronized with this Jira Improvement by Unito

getsantry[bot] commented 1 year ago

Assigning to @getsentry/support for routing, due by (yyz). ⏲️

getsantry[bot] commented 1 year ago

Routing to @getsentry/ecosystem for triage, due by (sfo). ⏲️

armenzg commented 1 year ago

What do you mean by source context? Do you have any examples?

souredoutlook commented 1 year ago

I have linked a Jira ticket with various links to events that illustrate the point

armenzg commented 1 year ago

https://getsentry.atlassian.net/browse/WOR-2713