getsentry / getsentry/sentry-javascript
Replays rejected due to size limit exceeded.
- Linguagem predominante
- TypeScript
- Estrelas
- 8.7k
- Forks
- 1.8k
- Merge médio
- 1d 17h
- PRs com merge (30d)
- 523
Descrição
### Is there an existing issue for this?
- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- [X] I have reviewed the documentation https://docs.sentry.io/
- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
### How do you use Sentry?
Sentry Saas (sentry.io)
### Which SDK are you using?
@sentry/browser
### SDK Version
8.17.0
### Framework Version
_No response_
### Link to Sentry event
_No response_
### SDK Setup/Reproduction Example
_No response_
### Steps to Reproduce
CSS files are inlined in the replays segments, when this file is large enough it can easily make the segment reach the size limit specially in buffer mode. When the limit is reached, the following logs are printed in the console and the replay is dropped:
```
logger.js:75 Sentry Logger [info]: [Replay] Stopping Replay triggered by addEventSizeExceeded
logger.js:75 Sentry Logger [info]: [Replay] Destroying compression worker
logger.js:75 Sentry Logger [log]: Adding outcome: "internal_sdk_error:replay"
```
No workarounds at the moment.
### Expected Result
The size of the CSS file does not affect the the ability of the SDK sending the replay. The replay is sent to Sentry and the server can render the recording with CSS.
### Actual Result
Replays are dropped and marked as SDK internal error in the client reports.
Guia de contribuição
Direção de pesquisa
Comece rastreando o tratamento de replays do navegador para a inclusão de CSS e o caminho addEventSizeExceeded, especialmente no modo de buffer. Reproduza a falha com um arquivo CSS grande e verifique se o replay é enviado, em vez de ser descartado ou marcado como um erro interno do SDK, enquanto o servidor ainda consegue renderizá-lo com CSS.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- typescript
- Domínio
- frontend, observability-sre
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100