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

add time ms and txn to encoded json #132

Merged
merged 2 commits into from
Jul 26, 2024
Merged

add time ms and txn to encoded json #132

merged 2 commits into from
Jul 26, 2024

Conversation

stlava
Copy link
Member

@stlava stlava commented Jul 26, 2024

This PR adds two new fields to the output JSON to help with tracking and debugging.

time_ms: time in ms of the server time for the record. This was added because time is encoded in RFC3339 which drops millisecond precision. For compatibility both fields remain. time_ms is encoded as a json number.

txn: this is the record's transaction id combined with the nanosecond timestamp of when bifrost saw the transaction from the WAL. This is encoded in a string of <txn id>-<ns timestamp>. The timestamp helps determine if bifrost re-read a transaction.

@stlava stlava requested review from ronakts and tsingla1998 July 26, 2024 16:56
@stlava stlava merged commit c355207 into main Jul 26, 2024
2 checks passed
@tsingla1998 tsingla1998 deleted the additional-fields branch August 2, 2024 17:13
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.

3 participants