Skip to content

docs(flutter): Clarify replay with feedback - #19286

Open
sentry-junior[bot] wants to merge 6 commits into
masterfrom
docs/flutter-feedback-replay
Open

docs(flutter): Clarify replay with feedback#19286
sentry-junior[bot] wants to merge 6 commits into
masterfrom
docs/flutter-feedback-replay

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Clarifies that Flutter's onErrorSampleRate keeps a rolling 30-second replay buffer and sends it for captured feedback. Documents the different trigger timing for Sentry.captureFeedback() and the built-in feedback form, which flushes when opened.

Also corrects outdated references to a one-minute buffer.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: 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 (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Requested by Gino Buenaflor.

--

View Junior Session [Sentry]

Co-Authored-By: Gino Buenaflor <giancarlo.buenaflor@sentry.io>
@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 9, 2026 4:10pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 9, 2026 4:10pm UTC

Request Review

buenaflor and others added 3 commits September 9, 2026 16:44
The user feedback page duplicated the onErrorSampleRate setup and
sampling semantics that the Session Replay page owns. Replace it with a
short `### Session Replay` subsection under `SentryFeedbackWidget`, the
same placement and depth the Android and Apple user feedback pages use,
and cross-link to the replay page instead of restating sampling rules.

Also use `SentryFeedbackWidget` in the replay page so the naming matches
the rest of the Flutter docs.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
`SentryFeedbackWidget` is a deprecated typedef alias for
`SentryFeedbackForm`, so rename the class references and the heading on
the user feedback page.

Also reduce the Session Replay edits to the factual corrections. The
buffer is 30 seconds rather than a minute, per the ring buffer size in
develop-docs/sdk/telemetry/replays.mdx, and the feedback form flushes it
on open, per develop-docs/sdk/telemetry/feedbacks.mdx. The surrounding
sentences go back to the wording the Apple page uses, and the duplicate
`onErrorSampleRate` snippet and the redundant platform note are dropped,
since the page already documents iOS/Android and SDK `9.0.0` up top.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
`SentryFeedbackForm` only exists in sentry-dart `9.21.0` and later, but
the page requires only `9.0.0`, so readers on an earlier 9.x would find
no such class.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@buenaflor
buenaflor marked this pull request as ready for review September 9, 2026 15:56
Copilot AI lite review requested due to automatic review settings September 9, 2026 15:56
Comment thread docs/platforms/dart/guides/flutter/user-feedback/index.mdx

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

There are still internal inconsistencies saying replays trigger on feedback “submission” even though the page also states the built-in form flushes when opened / when Sentry.captureFeedback() is called.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the Flutter docs to accurately describe how Session Replay behaves when capturing user feedback, including the rolling buffer duration and when buffered replays get uploaded, and updates naming to match the current SentryFeedbackForm API.

Changes:

  • Rename docs references from SentryFeedbackWidget to SentryFeedbackForm, including a note about the pre-9.21.0 name.
  • Document that onErrorSampleRate keeps a rolling 30-second buffer (not one minute).
  • Clarify that buffered replays can be flushed for feedback capture, including the built-in feedback form behavior.
File summaries
File Description
docs/platforms/dart/guides/flutter/user-feedback/index.mdx Renames the form widget docs and adds a “Session Replay” section explaining the 30-second buffer + feedback-triggered flush behavior.
docs/platforms/dart/guides/flutter/session-replay/index.mdx Updates the “errors only” replay section and sampling text to include buffered replays for feedback and corrects buffer duration to 30 seconds.
docs/platforms/dart/guides/flutter/session-replay/configuration.mdx Updates the onErrorSampleRate config description to reflect feedback-triggered buffered replays and the 30-second buffer.
Review details

Suppressed comments (1)

docs/platforms/dart/guides/flutter/session-replay/index.mdx:72

  • This bullet says onErrorSampleRate replays are recorded when a user "submits" feedback, but later in this section the upload trigger is described as Sentry.captureFeedback() or the built-in feedback form opening. Align the wording here with the actual triggers to prevent readers from assuming it only happens on submit.
2. `onErrorSampleRate` - The sample rate for replays that are recorded when an error happens or when a user submits feedback. This type of replay will record
   up to 30 seconds of events prior to the trigger and continue recording until the session ends.
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/platforms/dart/guides/flutter/session-replay/configuration.mdx Outdated
Comment thread docs/platforms/dart/guides/flutter/session-replay/index.mdx Outdated
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