SentryTransaction.finish() clears transaction from the Scope even if it was not bound to the Scope at all, that means, we'd be clearing a transaction bound to the Scope that might not be the same transaction at all.
|
if (item != null) { |
|
item.getScope().clearTransaction(); |
|
} |
I think before clearing it up, we'd need to check if it's actually the very same running transaction, this might be a problem only on Mobile though because of the single Hub thingie
SentryTransaction.finish() clears transaction from the Scope even if it was not bound to the Scope at all, that means, we'd be clearing a transaction bound to the Scope that might not be the same transaction at all.
sentry-java/sentry/src/main/java/io/sentry/Hub.java
Lines 558 to 560 in 1431c5e
I think before clearing it up, we'd need to check if it's actually the very same running transaction, this might be a problem only on Mobile though because of the single Hub thingie