Skip to content

Commit dd2def4

Browse files
sergicalclaude
authored andcommitted
feat(nextjs): Improve logs documentation with split-view layout (#15919)
## Summary Redesigns the Next.js Logs documentation with improved layout and content: - **Split-view layout** — Text explanations on left, code examples on right - **Inlined integrations** — Console, Pino, Consola, Winston with split-view - **Sample payload** — Shows all default attributes in context (replaces verbose tables) - **Troubleshooting section** — Common issues: enableLogs config, dropped logs, filtered data - **Best practices** — Wide events, business context, consistent naming ## Why Next.js-specific? Next.js requires `enableLogs: true` in **3 separate config files** (client, server, edge), unlike most SDKs that have a single init. ## Future work This split-view layout can be applied to other SDK logs docs. The pattern established here (setup, usage, integrations, best practices, troubleshooting) can become the standard template. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent 76940b2 commit dd2def4

File tree

3 files changed

+523
-0
lines changed

3 files changed

+523
-0
lines changed

docs/platforms/javascript/guides/nextjs/index.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ Sentry.init({
112112
// ___PRODUCT_OPTION_START___ performance
113113
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1,
114114
// ___PRODUCT_OPTION_END___ performance
115+
// ___PRODUCT_OPTION_START___ logs
116+
enableLogs: true,
117+
// ___PRODUCT_OPTION_END___ logs
115118
});
116119
```
117120

0 commit comments

Comments
 (0)