_Platform:_
_IDE:_
_Build system:_
_Android Gradle Plugin:_
_Sentry Android Gradle Plugin:_
_Proguard/R8:_
_Platform installed with:_
The version of the SDK:
4.0.0-alpha.1
I have the following issue:
So if the sentry-trace header is exists it will startTransaction in this line https://github.com/getsentry/sentry-java/blob/main/sentry-spring/src/main/java/io/sentry/spring/tracing/SentryTracingFilter.java#L88.
The transactionContext only set the parentSampled in https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/TransactionContext.java#L42, but does not set the sampled (set to null) https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/TransactionContext.java#L40
This will lead to always skipping the capture process in https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/Hub.java#L652-L658 because the transaction.isSampled() returns null
Expected result:
sentry-trace header existsThanks @ano1404 for reporting. Fix is on a way.
@ano1404 thanks a lot for trying it out and raising the issue 鉂わ笍