feat(logs): Add Best Practices section to all SDK logs documentation#15935
Open
feat(logs): Add Best Practices section to all SDK logs documentation#15935
Conversation
Creates platform-includes for best practices with SDK-specific code examples: - Wide Events Over Scattered Logs - Include Business Context - Consistent Attribute Naming Adds Best Practices section to all 20 SDK logs pages using platform-includes for consistent documentation across JavaScript, Python, Go, Java, PHP, Ruby, .NET, Android, iOS, React Native, Dart/Flutter, Native, Godot, Unity, Unreal, and Rust. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
philprime
reviewed
Jan 8, 2026
|
|
||
| Pick a naming convention and stick with it across your codebase. Inconsistent names make queries impossible. | ||
|
|
||
| **Recommended:** Use `snake_case` for custom attributes to match common conventions. |
Member
There was a problem hiding this comment.
m: Our develop-docs use dot-namespacing, might be worth mentioning.
https://develop.sentry.dev/sdk/telemetry/logs/#default-attributes
antonis
approved these changes
Jan 9, 2026
Contributor
antonis
left a comment
There was a problem hiding this comment.
The React Native part LGTM 🚀
Thank you for this enhancement 🙇
Also looping in @lucas-zimerman who has more context on the logs implementation in case he has more feedback 🙏
mujacica
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<PlatformContent includePath="logs/best-practices" />Platforms covered
JavaScript, Python, Go, Java, PHP, Ruby, .NET, Android, iOS, React Native, Dart/Flutter, Native, Godot, Unity, Unreal, Rust
Test plan
🤖 Generated with Claude Code