Skip to content

docs(android): Add beforeErrorSampling callback for Session Replay#17134

Merged
romtsn merged 2 commits intomasterfrom
rz/feat/android-replay-before-error-sampling
Mar 26, 2026
Merged

docs(android): Add beforeErrorSampling callback for Session Replay#17134
romtsn merged 2 commits intomasterfrom
rz/feat/android-replay-before-error-sampling

Conversation

@romtsn
Copy link
Copy Markdown
Member

@romtsn romtsn commented Mar 26, 2026

DESCRIBE YOUR PR

Document the new beforeErrorSampling callback on SentryReplayOptions that lets developers filter which errors trigger replay capture before the onErrorSampleRate dice roll.

  • Add beforeErrorSampling row to the configuration options table
  • Add "Ignore Certain Errors from Error Sampling" section with Kotlin and Java examples

Refs getsentry/sentry-java#5214

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

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

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • 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

Document the new beforeErrorSampling callback on SentryReplayOptions
that lets developers filter which errors trigger replay capture.
Adds a row to the configuration table and a new section with
Kotlin and Java examples.

Refs getsentry/sentry-java#5214
Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

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

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Mar 26, 2026 1:42pm
sentry-docs Ready Ready Preview, Comment Mar 26, 2026 1:42pm

Request Review

@codeowner-assignment codeowner-assignment bot requested a review from a team March 26, 2026 13:30
@romtsn romtsn merged commit aa58af7 into master Mar 26, 2026
18 checks passed
@romtsn romtsn deleted the rz/feat/android-replay-before-error-sampling branch March 26, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants