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

Handle compressed payload in the request to /telemetry/report handler #14

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

mbelur
Copy link
Collaborator

@mbelur mbelur commented Jun 7, 2024

This change handles compressed payload in the /telemetry/report handler

Determines whether the request payload is compressed content or not based on the Content-Encoding Header and supports the gzip compression algorithm.

Also adds a unittest to test the compressed payload handling

Addresses: #7

@mbelur mbelur force-pushed the payload-compression branch from d1c8945 to 62be388 Compare June 7, 2024 19:14
@mbelur mbelur requested a review from rtamalin June 7, 2024 19:17
@mbelur mbelur changed the title Enable Payload compression for report submissions Handle compressed payload in the request to /telemetry/report handler Jun 7, 2024
@mbelur mbelur force-pushed the payload-compression branch from 62be388 to 5de11bc Compare June 10, 2024 15:02
app/report.go Outdated Show resolved Hide resolved
@mbelur mbelur force-pushed the payload-compression branch from 5de11bc to cfe6b4f Compare June 17, 2024 19:38
This change handles compressed payload in the /telemetry/report handler

Determines whether the request payload is compressed content or not based
on the Content-Encoding Header and supports the gzip/deflate compression algorithm.

Also adds a unittest to test the compressed payload handling

Addresses: #7
@mbelur mbelur force-pushed the payload-compression branch from cfe6b4f to 7a14dcf Compare June 17, 2024 20:20
app/handler_report.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@rtamalin rtamalin left a comment

Choose a reason for hiding this comment

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

LGTM

@mbelur mbelur merged commit 0c0ad35 into main Jun 17, 2024
1 check passed
@mbelur mbelur deleted the payload-compression branch June 21, 2024 14:24
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