Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Configuration option to stop/disable post-crash replay recording on Android

オープン
#6,040 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin

調査の方向性

SentryReplayOptions と beforeErrorSampling コールバックから始め、Android のクラッシュイベントが session replay の記録とどのように連携するかを追跡します。キャプチャされたクラッシュの直後に replay が停止するように設定の動作を定義し、通常の replay とエラーサンプリングに影響がないことを確認します。

索引モデルが issue の本文から書いたものです。

説明

Android Feature Platform: Java Replays
Problem Statement

Currently, when an error/crash occurs, the SDK samples the event and continues recording post-crash replay until the session naturally ends. This replay is absolutely useless for us. I need a purely configuration-based way to completely prevent or instantly cut off replay recording right after a crash event occurs.

Solution Brainstorm

I would like a new configuration option in SentryReplayOptions (or a built-in behavior within beforeErrorSampling) that automatically stops the replay recorder immediately after a crash event is captured.

For example, a flag like stopRecordingOnCrash:

SentryAndroid.init(context) { options ->
  options.sessionReplay.onErrorSampleRate = 1.0
  // Proposed flag to cut off recording instantly after a crash/unhandled exception
  options.sessionReplay.isStopRecordingOnCrash = true 

  options.sessionReplay.beforeErrorSampling =
    SentryReplayOptions.BeforeErrorSamplingCallback { event, hint ->
      event.isCrashed // Only capture replays for crashes
    }
}
主要言語
Kotlin
スター
1.4k
フォーク
478
平均マージ
2日 20時間
マージ済み PR(30日)
71

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-java のほかの issue

getsentry/sentry-java の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。