getsentry / getsentry/sentry-java
Capture logcat output as attachment
- Linguagem predominante
- Kotlin
- Estrelas
- 1.4k
- Forks
- 478
- Merge médio
- 3d 4h
- PRs com merge (30d)
- 72
Descrição
### Problem Statement
Through this issue, we started capturing logcat logs as breadcrumb:
* https://github.com/getsentry/sentry-java/issues/1620
We used the gradle plugin and bytecode manipulation to capture the logcat API done by libraries in the app itself. But that means we're not capturing system logs, for example.
@romtsn said:
> this works for the app and libraries logcat calls, but not the system ones. Also it supports all Android versions, while this approach is from API 23 and above.
We received a PR in the .NET SDK
* https://github.com/getsentry/sentry-dotnet/pull/2926
That adds logcat logs as attachments (**opt-in**) with mime type `text/logcat`. And a ticket was created to have a custom preview in Sentry:
* https://github.com/getsentry/sentry/issues/61005
Ideally this is available for all cross platform SDKs like React Native and Flutter. If it can't be made available through the native bridget, we can duplicate this ticket in the other repos.
Guia de contribuição
Direção de pesquisa
Comece lendo a captura existente de breadcrumbs do logcat e o pull request vinculado do sentry-dotnet; em seguida, compare como o acesso ao Android logcat funciona entre os API levels compatíveis. Defina o comportamento de anexos com opt-in e verifique se a saída capturada é enviada com mime type text/logcat; a issue não fornece arquivos do repositório nem testes para executar.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- android, kotlin
- Domínio
- mobile-dev, observability
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100