-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: properly handle keep state and timestamp for state transition (#…
…1014) <!-- Thank you for contributing to the project! 💜 Please make sure to: - Chat with us first if this is a big change - Open a new issue (or comment on an existing one) - We want to make sure you don't spend time implementing something we might have to say No to - Add unit tests - Mention any relevant issues in the PR description (e.g. "Fixes #123") Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate. --> ## Which problem is this PR solving? - Keep state - this PR makes sure that the keep decision is stored as part of the state transition for a given trace - It also adds logic to remove spans information for a given trace when a decision is made - Timestamp - we nee record the current time whenever a state change happens. - the precision used before is not sufficient to determine the order of state change events - this PR changes the timestamp precision from second to nanosecond ## Short description of the changes - Modified `KeepTrace` - return traceIDs that has successfully changed their states from `toNextState` function - added more tests
- Loading branch information
Showing
5 changed files
with
470 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.