getsentry / getsentry/sentry-java
Configurable maxReplayDuration for Android Session Replay
- Linguagem predominante
- Kotlin
- Estrelas
- 1.4k
- Forks
- 478
- Merge médio
- 3d 4h
- PRs com merge (30d)
- 72
Descrição
### Problem Statement
The Android Session Replay SDK currently has a fixed maximum session duration of 60 minutes with no way to configure a lower limit. The JavaScript SDK already supports a maxReplayDuration option, but no equivalent exists for Android.
Use cases where a configurable max duration would be helpful:
Reducing storage/resource usage by capping replays at a shorter duration (e.g. 15 or 30 minutes)
Limiting post-error recording to a shorter window when using onErrorSampleRate
Aligning Android replay behavior with the JavaScript SDK for consistency
### Solution Brainstorm
Add a maxReplayDuration option to SessionReplayOptions, similar to what is already available in the JavaScript SDK:
SentryAndroid.init(context) { options ->
options.sessionReplay.maxReplayDuration = 30 * 60 * 1000L // 30 minutes in ms
}
This would mirror the existing JavaScript SDK option:
replayIntegration({
maxReplayDuration: 30 * 60 * 1000, // 30 minutes in ms
})
Guia de contribuição
Direção de pesquisa
Comece com SessionReplayOptions e a inicialização do Android Session Replay mostrada por meio de SentryAndroid.init; compare o comportamento existente de maxReplayDuration no JavaScript. Rastreie onde o limite fixo de 60 minutos é aplicado e, em seguida, verifique se configurar uma duração menor funciona sem alterar o comportamento padrão e execute os testes relevantes do Android.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- android, kotlin
- Domínio
- mobile
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 68/100