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

i#2039 trace trim, part 5: Drop early data #5768

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

derekbruening
Copy link
Contributor

Part 4 added a minimum timestamp, but it only works for data that is not actually emitted until we are fully attached. For data emitted before that point, we'll use a too-early timestamp. We solve that here by dropping such data.

Tested on a large app where these changes solve gaps at the start of the trace due to an early timestamp in one thread.

Issue: #2039

Part 4 added a minimum timestamp, but it only works for data that is
not actually emitted until we are fully attached.  For data emitted
before that point, we'll use a too-early timestamp.  We solve that
here by dropping such data.

Tested on a large app where these changes solve gaps at the start of
the trace due to an early timestamp in one thread.

Issue: #2039
@derekbruening
Copy link
Contributor Author

Update: it turns out this is not needed on the big app in question; there was some other error in prior results. But this is still a theoretical issue. It is not easy to make an automated test unfortunately.

@derekbruening derekbruening merged commit ef2dbb0 into master Dec 1, 2022
@derekbruening derekbruening deleted the i2039-drop-early-data branch December 1, 2022 05:28
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.

2 participants