Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SentryTransaction.finish() clears transaction from the Scope even if it was not bound to the Scope at all #1269

Closed
marandaneto opened this issue Feb 18, 2021 · 0 comments · Fixed by #1278
Assignees
Labels
performance Performance API issues Type: Bug Something isn't working

Comments

@marandaneto
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance API issues Type: Bug Something isn't working
Projects
None yet
2 participants