getsentry / getsentry/sentry-java
`@SentryCheckIn` always starts a new trace
- Linguagem predominante
- Kotlin
- Estrelas
- 1.4k
- Forks
- 478
- Merge médio
- 2d 22h
- PRs com merge (30d)
- 69
Descrição
### Integration
sentry
### Java Version
any
### Version
8.27.1
### Steps to Reproduce
https://github.com/getsentry/sentry-java/blob/3699cd5331a4c334c1e8a4bd85aa8e399f5c4231/sentry-samples/sentry-samples-spring-boot-4/src/main/java/io/sentry/samples/spring/boot4/CustomJob.java#L14 creates a transaction.
https://github.com/getsentry/sentry-java/blob/4c4fed9ef005ffc3acaf460ed345c1e700fdeefe/sentry-spring-7/src/main/java/io/sentry/spring7/checkin/SentryCheckInAdvice.java#L91 starts a new trace.
Use our Spring Boot 4 sample to verify.
### Expected Result
`PropagationContext` trace ID matches the transactions trace ID.
### Actual Result
`PropagationContext` trace ID differs from the transactions trace ID.
This might not have any effect in practice because we should be using the span/transaction when retrieving the trace ID.
Guia de contribuição
Direção de pesquisa
Comece com o exemplo de Spring Boot 4 em sentry-samples/sentry-samples-spring-boot-4/.../CustomJob.java e com as orientações de check-in em sentry-spring-7/.../SentryCheckInAdvice.java. Reproduza o comportamento usando o exemplo e, em seguida, rastreie como os trace IDs da transação e de PropagationContext são obtidos. A tarefa estará concluída quando o trace ID de PropagationContext corresponder ao trace ID da transação.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java, spring-boot
- Domínio
- backend, observability
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 58/100