Browse Source

feat: store symbolicated source_link (#46493)

Makes sure `source_link` frame attribute that is provided by the
symbolicator makes it to Sentry.

Enables https://github.com/getsentry/sentry/issues/46024

Example: look for "source_link" in the attached
[JSON](https://github.com/getsentry/sentry/files/11098268/download.txt)
that has been saved from a local developer instance
Ivan Dlugos 1 year ago
parent
commit
fe46cf7e22
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/sentry/lang/native/processing.py

+ 2 - 0
src/sentry/lang/native/processing.py

@@ -76,6 +76,8 @@ def _merge_frame(new_frame, symbolicated, platform="native"):
         new_frame["context_line"] = symbolicated["context_line"]
     if symbolicated.get("post_context"):
         new_frame["post_context"] = symbolicated["post_context"]
+    if symbolicated.get("source_link"):
+        new_frame["source_link"] = symbolicated["source_link"]
 
     addr_mode = symbolicated.get("addr_mode")
     if addr_mode is None: