Skip to content

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

@souredoutlook

Description

@souredoutlook

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:

  • line number
  • filename with path
  • properly configured code mapping
  • source context

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:

  • java
  • Go (when source bundles are not included with the deployed binary)
  • C#

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions