Skip to content

[extension/awslogsencoding, receiver/awsfirehose] Deprecate transparent gzip decompression#47744

Open
singhvibhanshu wants to merge 1 commit intoopen-telemetry:mainfrom
singhvibhanshu:deprecateGZIPDecompression
Open

[extension/awslogsencoding, receiver/awsfirehose] Deprecate transparent gzip decompression#47744
singhvibhanshu wants to merge 1 commit intoopen-telemetry:mainfrom
singhvibhanshu:deprecateGZIPDecompression

Conversation

@singhvibhanshu
Copy link
Copy Markdown
Contributor

Fixes #46463

Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>
@singhvibhanshu
Copy link
Copy Markdown
Contributor Author

/rerun

Copy link
Copy Markdown
Contributor

@axw axw left a comment

Choose a reason for hiding this comment

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

@singhvibhanshu thanks for the PR. Can you please split the Firehose receiver changes into a separate one?

Comment on lines +89 to +98

id, err := encodingToComponentID(encoding)
if err != nil {
return fmt.Errorf("invalid encoding extension %q: %w", encoding, err)
}

componentType := id.Type()
if componentType == awsLogsEncodingType || componentType == awsLogsEncodingDeprecatedType {
c.decompressGzipRecord = true
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's not make this specific to one encoding extension. The receiver can be changed to always decompress gzip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[extension/encoding/awslogsencoding] deprecate transparent gzip decompression

3 participants