Skip to content

Fix Go slog docs examples and add MultiHandler usage#17683

Open
giortzisg wants to merge 1 commit intomasterfrom
giortzisg/docs/fix-go-slog-examples
Open

Fix Go slog docs examples and add MultiHandler usage#17683
giortzisg wants to merge 1 commit intomasterfrom
giortzisg/docs/fix-go-slog-examples

Conversation

@giortzisg
Copy link
Copy Markdown
Collaborator

@giortzisg giortzisg commented May 8, 2026

DESCRIBE YOUR PR

This fixes the slog docs page by replacing the broken verification snippet with a runnable example and cleaning up the Option reference.

It also adds a Go 1.26+ slog.NewMultiHandler example so users can send logs to Sentry while keeping another handler, such as TextHandler, active.

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 8, 2026 9:04am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview May 8, 2026 9:04am

Request Review

Comment thread docs/platforms/go/common/logs/slog.mdx Outdated
Replace the broken slog Option snippet with runnable examples and
add a Go 1.25+ MultiHandler example so users can send logs to
Sentry while keeping another handler active.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant