Skip to content

Conversation

@KyleTryon
Copy link
Contributor

@KyleTryon KyleTryon commented Nov 21, 2025

This pull request updates Sentry's documentation for logs and drains to provide clearer explanations, improved onboarding, and better guidance for users integrating platform-native logs and traces. The changes introduce new overview sections, clarify the benefits of trace-connected logs, and enhance instructions for setting up log drains across supported platforms.

Documentation improvements and onboarding clarity:

  • Added a comprehensive overview of log and trace drains, including supported platforms, data types, setup prerequisites, and links to related documentation in docs/product/drains/index.mdx. This helps users understand when and how to use drains for platform-level telemetry.
  • Updated the logs getting started guide to describe log drains, list supported integrations, and clarify the use of OpenTelemetry endpoints for log forwarding.

Feature explanation and search enhancements:

  • Expanded the logs overview to explain "trace-connected" logs—each log entry is linked to its trace, enabling seamless navigation from logs to traces and errors. Added practical examples for log search queries and clarified how to use custom attributes.
  • Added a new section describing the trace-connected debugging workflow, guiding users through searching logs, viewing traces, and identifying root causes in a unified flow.

Usability and search improvements:

  • Improved explanations for auto-refresh and query volume conditions in the logs explorer, including links to filtering and search documentation for better discoverability.

Updated the overview to clarify the benefits of structured logs, including their searchability and trace connection. Improved the list of log tracking examples and added links to relevant search syntax and filtering documentation. Adjusted wording for clarity in sections about log entry expansion and auto-refresh conditions.
…tions

Enhanced the logs documentation by introducing log drains, which allow users to forward logs from various platforms directly to Sentry. Updated the "Getting Started" and "Log Drains" sections to include supported platforms like Vercel, Cloudflare, Heroku, and Supabase, along with relevant links for further information.
@vercel
Copy link

vercel bot commented Nov 21, 2025

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

Project Deployment Preview Comments Updated (UTC)
develop-docs Ready Ready Preview Comment Nov 25, 2025 3:54am
sentry-docs Ready Ready Preview Comment Nov 25, 2025 3:54am

@codecov
Copy link

codecov bot commented Nov 21, 2025

Bundle Report

Changes will increase total bundle size by 176.09kB (0.75%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 13.17MB 176.07kB (1.36%) ⬆️
sentry-docs-client-array-push 10.18MB 22 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.74MB -0.0%
../instrumentation.js -3 bytes 1.07MB -0.0%
9523.js -3 bytes 1.04MB -0.0%
../app/[[...path]]/page.js.nft.json 58.68kB 948.01kB 6.6% ⚠️
../app/platform-redirect/page.js.nft.json 58.68kB 947.93kB 6.6% ⚠️
../app/sitemap.xml/route.js.nft.json 58.68kB 945.16kB 6.62% ⚠️
../app/[[...path]]/page.js 27 bytes 626.68kB 0.0%

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] 27 bytes 3.37MB 0.0%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
static/chunks/app/[[...path]]/page-*.js 28 bytes 99.53kB 0.03%
static/5hBKFLovSqTkaRJzXaklS/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/5hBKFLovSqTkaRJzXaklS/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/CyPQKXyCOBNgzHt5lix7A/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/CyPQKXyCOBNgzHt5lix7A/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Updated the structured logs documentation to enhance the clarity of log tracking examples. Reworded sections to provide more specific descriptions of debugging information, user behavior, application state, and business events. Added a link to the "Getting Started" guide for sending structured logs with custom attributes.
Enhanced the drains documentation by providing a comprehensive overview of how to set up log and trace drains for various platforms. Added sections detailing supported platforms, data types, and prerequisites for configuration. Included an alert regarding the current limitation of error event support through drains, directing users to utilize Sentry SDKs for error capturing.
…d debugging flow

Expanded the structured logs documentation to include a detailed explanation of trace-connected logs, emphasizing their role in debugging. Added practical search examples for log queries and clarified the seamless workflow from log entry to trace analysis. Improved overall clarity and context for users investigating issues through logs.
@KyleTryon KyleTryon marked this pull request as ready for review November 21, 2025 20:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR significantly enhances the documentation for Sentry's Structured Logs feature by adding more detailed explanations, practical examples, and improved navigation. The changes focus on clarifying the "trace-connected" concept and expanding documentation for log drains across different platforms.

  • Added comprehensive explanation of trace-connected logs and their debugging workflow
  • Expanded search examples and filtering documentation with practical use cases
  • Reorganized and enhanced the log drains documentation with a detailed platform support table

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
docs/product/explore/logs/index.mdx Enhanced overview with trace-connected explanation, added search examples, debugging flow section, and improved cross-linking to related documentation
docs/product/explore/logs/getting-started/index.mdx Reorganized log drains section with clearer platform integration listings and OTLP endpoint information
docs/product/drains/index.mdx Complete rewrite with structured overview, platform support table, prerequisites, and getting started guide for better clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@sfanahata sfanahata left a comment

Choose a reason for hiding this comment

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

A couple of suggestions, but looks good! Much more detailed <3

KyleTryon and others added 3 commits November 24, 2025 22:43
Co-authored-by: Shannon Anahata <shannon.anahata@gmail.com>
Co-authored-by: Shannon Anahata <shannon.anahata@gmail.com>
@KyleTryon KyleTryon merged commit 431a9be into master Nov 25, 2025
14 checks passed
@KyleTryon KyleTryon deleted the docs/logs-refresh-kyle branch November 25, 2025 04:30
AbhiPrasad added a commit that referenced this pull request Dec 1, 2025
After doing a read through of
#15595, I realized we
could probably better incorporate details on forwarders, which I added
as part of #15623.

This hopefully makes this section a bit easier to grok, which is
important as I'm going to link to this doc from onboarding within a
couple of days, so it's going to get a lot more traffic.

Thank you @KyleTryon for kick starting the work on this, made it much
easier for me to conceptualize the needed sections on this.


https://sentry-docs-git-abhi-refactor-drains-index.sentry.dev/product/drains/
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants