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

feat: No longer debounce IdleTransaction #2618

Merged
merged 3 commits into from
May 27, 2020

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented May 27, 2020

Right now we debouce a setTimeout every time an activity is popped.
This resulted in sometimes the IdleTransaction never finishing because there was constantly an activity blocking flushing the Transaction.

This PR changes the behavior that once all activities are done the setTimeout is triggered and will fire regardless.
In addition we discard any Spans that might have been recorded after the Transaction was marked for flushing. This fixes a bug where we had very long Transactions recorded because they weren't flushed + we recorded Spans at the very end -> resulting in absurdly long Transactions.

Verified

This commit was signed with the committer’s verified signature.
@HazAT HazAT requested a review from kamilogorek as a code owner May 27, 2020 08:58
@HazAT HazAT self-assigned this May 27, 2020
@getsentry-bot
Copy link
Contributor

getsentry-bot commented May 27, 2020

Messages
📖

@sentry/browser bundle gzip'ed minified size: ($ cat build/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print "ES6: ",$1,"kB";}') (ES6: 15.8076 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against a53a937

@kamilogorek
Copy link
Contributor

Didn't verify the functionality myself, but looks good codewise.

HazAT added 2 commits May 27, 2020 11:24

Verified

This commit was signed with the committer’s verified signature.
@HazAT HazAT merged commit 5debdf7 into master May 27, 2020
@HazAT HazAT deleted the hazat/tracing-integration-updates branch May 27, 2020 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants