Skip to content

docs(go): Recommend SCM source context for Go#17684

Merged
giortzisg merged 3 commits into
masterfrom
giortzisg/docs/recommend-scm-source-context
May 13, 2026
Merged

docs(go): Recommend SCM source context for Go#17684
giortzisg merged 3 commits into
masterfrom
giortzisg/docs/recommend-scm-source-context

Conversation

@giortzisg
Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

This updates the Go serverless and troubleshooting docs to recommend SCM Source Context as the preferred way to get source lines in stack traces when a supported SCM integration is available.

It also expands the SCM Source Context page to explain why this is often a better default than bundling repository source into deployed binaries, especially for Go serverless deployments.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

EXTRA RESOURCES

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment May 13, 2026 11:11am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview May 13, 2026 11:11am

Request Review


For Go, source context is provided through [SCM Source Context](/integrations/source-code-mgmt/source-context/) with code mappings.

The Go SDK no longer reads local source files at runtime to populate source context. If you want source lines in stack traces, set up SCM Source Context instead of bundling source files with your deployed binary.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this paragraph, something for the SDK changelog instead.


## Troubleshooting Missing Source Context

If stack traces are missing source lines, check the following:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If stack traces are missing source lines, check the following:
If stack traces are missing source lines, make sure that:

Copy link
Copy Markdown
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@giortzisg giortzisg changed the title Recommend SCM source context for Go serverless deployments docs(go): Recommend SCM source context for Go May 13, 2026
@giortzisg giortzisg enabled auto-merge (squash) May 13, 2026 10:59
@giortzisg giortzisg merged commit 74651d7 into master May 13, 2026
20 checks passed
@giortzisg giortzisg deleted the giortzisg/docs/recommend-scm-source-context branch May 13, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants