Skip to content

docs(go): Remove retired telemetry kill switches - #19129

Merged
giortzisg merged 3 commits into
masterfrom
docs/go-remove-telemetry-killswitches
Aug 26, 2026
Merged

docs(go): Remove retired telemetry kill switches#19129
giortzisg merged 3 commits into
masterfrom
docs/go-remove-telemetry-killswitches

Conversation

@giortzisg

@giortzisg giortzisg commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

Go onboarding, logging, metrics, and configuration docs now match sentry-go#1392. The removed DisableLogs and DisableMetrics options are no longer shown, and selecting Logs now adds a concise sentry.NewLogger invocation.

IS YOUR CHANGE URGENT?

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

PRE-MERGE CHECKLIST

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

Update Go onboarding, logging, metrics, and configuration docs for the removal of DisableLogs and DisableMetrics in sentry-go.

Co-Authored-By: GPT-5 Codex <noreply@openai.com>
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Aug 26, 2026 12:49pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Aug 26, 2026 12:49pm

Request Review

Give the Logs product toggle an executable NewLogger example instead of only describing the default behavior.

Co-Authored-By: GPT-5 Codex <noreply@openai.com>

@szokeasaurusrex szokeasaurusrex left a comment

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.

Some small questions/suggestions

err := sentry.Init(sentry.ClientOptions{
Dsn: "___PUBLIC_DSN___",
// Note: Structured Logs are enabled by default. To disable them, set DisableLogs: true.
// Note: Structured Logs are enabled by default.

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.

l: I would just remove this whole line; keeping it implies that disabling logs is possible, but I guess it is not

Suggested change
// Note: Structured Logs are enabled by default.

// visit: https://docs.sentry.io/platforms/go/data-management/data-collected/ for more info
SendDefaultPII: true,
// Logs are enabled by default. To disable them, set DisableLogs: true.
// Logs are enabled by default.

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.

l: same as above

Suggested change
// Logs are enabled by default.

Comment on lines +31 to +35

// ___PRODUCT_OPTION_START___ logs
logger := sentry.NewLogger(context.Background())
logger.Info().Emit("User example action completed")
// ___PRODUCT_OPTION_END___ logs

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.

m: This is just an example, right? Or, are any of these lines needed to enable logs?

If logs are enabled by default and these are just examples, I would lean towards not even including the logs checkbox at all. Otherwise, keeping makes sense.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah just examples. I thought it might be nicer to keep the checkbox and show a small snippet. That's also what js are doing

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 am not sure that makes sense to do; I would be concerned that users get confused and think this is a necessary step, not just an example.

But fair enough, if you would like to merge the PR like this, it is fine with me

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fair argument, since people can just use an integration rather than the NewLogger api. I'll remove the toggle then.

@giortzisg
giortzisg merged commit e939ad8 into master Aug 26, 2026
22 checks passed
@giortzisg
giortzisg deleted the docs/go-remove-telemetry-killswitches branch August 26, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants