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

ref: A better commit log format pt2 #290

Merged
merged 2 commits into from
Sep 29, 2023
Merged

ref: A better commit log format pt2 #290

merged 2 commits into from
Sep 29, 2023

Conversation

lynnagara
Copy link
Member

Follow up to #289

I really don't want to port this to Rust, let's simplify the commit
log format

Also avoid putting important information in headers. This was a hack
to avoid changing the message format earlier, but it should be avoided.
The timestamp is now in the payload of the message
@lynnagara lynnagara requested a review from a team as a code owner September 28, 2023 19:57
payload = json.dumps(
{
"offset": value.offset,
"orig_message_ts": datetime.timestamp(value.orig_message_ts),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for the alerts e2e SLO ?

Copy link
Member Author

@lynnagara lynnagara Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, this is the same information that was already there, just in a float format and in the body not the header now so we don't need to do the custom decoding dance

lynnagara added a commit to getsentry/snuba that referenced this pull request Sep 29, 2023
lynnagara added a commit to getsentry/snuba that referenced this pull request Sep 29, 2023
@lynnagara lynnagara merged commit 0af36f3 into main Sep 29, 2023
8 checks passed
@lynnagara lynnagara deleted the commit-codec-2 branch September 29, 2023 19:57
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