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

fix(profiling): Re-encode the Typescript payload to normalize #1372

Merged

Conversation

phacops
Copy link
Contributor

@phacops phacops commented Aug 1, 2022

Until now, if we could parse the Typescript payload, we would forward it as is to the rest of the pipeline.

Since we're normalizing it (converting uint64 sent as strings to a u64 type for example), we need to re-encode it in JSON and then forward it otherwise the payload will not be normalized as we expect.

This PR fixes this issue. I also removed test files that were moved to the relay-profiling crate but not deleted from the relay-server crate.

@phacops phacops requested a review from a team as a code owner August 1, 2022 16:03
@phacops phacops requested a review from a team August 1, 2022 16:03
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

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

Should we add some assertions to test_roundtrip_typescript (or a new test) to demonstrate the change in behavior?

@phacops phacops enabled auto-merge (squash) August 2, 2022 14:40
@phacops phacops merged commit a581f1d into master Aug 2, 2022
@phacops phacops deleted the pierre/profiling-reencode-the-typescript-payload-to-normalize branch August 2, 2022 15:03
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