-
-
Notifications
You must be signed in to change notification settings - Fork 230
Description
There are different approaches we can take to add support for source context:
-
It's possible to embed sources in the pdb. Couldn't find docs but general GitHub issues. Seems the property is
<Embed>true</Embed>.
With this approach we can document this on docs.sentry.io and suggest users opt-in. And read the source when capturing the SDK (opt-in at first, with the goal of making it opt-out). With the source embedded, we can read it at runtime (see this commit: 518ab64) and send it with the event. -
Additional approach is to use Source Bundles and corresponding docs. This requires changes on Sentry CLI and the backend.
-
Yet another way is to support sourcelink on the server by fetching the external VCS repository to get the relevant line numbers. Related: When sourcelink data is available send with event #400 It also requires changes on the backend but can help us show source context for external, .NET libraries which commonly use sourcelink (.NET itself uses it).
Related: