getsentry / getsentry/sentry-java

Auto detect `inApp` for stack frames

Aberta
#2,710 4 comentários 0 reações 0 responsáveis Ver no GitHub
Improvement Java
Linguagem predominante
Kotlin
Estrelas
1.4k
Forks
478
Merge médio
3d 4h
PRs com merge (30d)
72

Descrição

### Problem Statement

`inApp` for non Android has to be set via `inAppIncludes`. It would be nice if Sentry could auto detect `inApp` frames.

### Solution Brainstorm

- Check if a package can be found on sources like https://central.sonatype.com/?smo=true
- might be rate limited
- not sure we can check package directly or need to try and walk up the package tree and try each package
- open source app could be on there but still be inApp
- Check what's calling Sentry.init - probably just shifting guesswork as we then don't know how far up the package tree we still consider inApp (e.g. com.some.myapp.x.y.MySpringApp might be in app but com.some.mylib could be a library by someone else
- If we have sources for a frame, assume it's inApp=true (wouldn't work in case we reworked source context to something that's loaded lazily when an issue is displayed and we then also lookup sources from https://central.sonatype.com/?smo=true etc.)
- During compile time detect package in build tool plugin somehow (Gradle and Maven)
- For integrations with auto init we may be able to find out some config param or similar that tells us something about the package

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Nenhum arquivo de implementação, teste ou regra concreta de detecção é especificado. Comece rastreando Sentry.init e o tratamento existente de inAppIncludes e, em seguida, compare as abordagens propostas para package, source e Gradle/Maven; a issue precisa de um escopo definido e critérios de aceitação antes que a conclusão possa ser verificada.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
java, kotlin
Domínio
backend
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
20/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.