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
out_stackdriver: support gzip compression #7101
Conversation
|
quick review:
once those are fixed we can do another review |
cc @qingling128 |
It seems splunk is using https://github.com/fluent/fluent-bit/blob/master/plugins/out_splunk/splunk.c#L600 |
Hi team, have changed to |
/retest |
Hi team, it's ready to review. |
Can you link the docs PR? |
cc @qingling128 Need a LGTM on gzip for out_stackdriver plugin, thanks! |
I have already approved this PR, @edsiper will merge it when he's able to. |
Ping ~ |
compressed_payload_buffer = (flb_sds_t) payload_buf; | ||
compressed_payload_size = flb_sds_len(payload_buf); | ||
if (ctx->compress_gzip == FLB_TRUE) { | ||
ret = flb_gzip_compress((void *) payload_buf, flb_sds_len(payload_buf), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Optional] There's nearly identical code in out_http
[1]. Should we look into a refactoring? Or defer? A question for @edsiper…
[1] https://github.com/fluent/fluent-bit/blob/master/plugins/out_http/http.c#L137-L152
BTW, [1] https://github.com/fluent/fluent-bit/blob/master/include/fluent-bit/flb_mem.h#L127 |
bdc6861
to
4b45a0c
Compare
Signed-off-by: Catherine Fang <yinghongfang@google.com>
Thanks, have updated! @igorpeshansky Okay, we can remove this safe check for fluent-bit/plugins/out_stackdriver/stackdriver.c Lines 62 to 64 in 6621b4b
|
Co-authored-by: igorpeshansky <igorpeshansky@users.noreply.github.com> Signed-off-by: CatherineF-dev <yinghongfang@google.com>
Co-authored-by: igorpeshansky <igorpeshansky@users.noreply.github.com> Signed-off-by: CatherineF-dev <yinghongfang@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit 6621b4b. Signed-off-by: Catherine Fang <yinghongfang@google.com>
cc @edsiper, this PR is ready to be merged |
cc @leonardo-albertovich as well. |
Implement gzip compression Signed-off-by: Catherine Fang <yinghongfang@google.com> Co-authored-by: igorpeshansky <igorpeshansky@users.noreply.github.com>
Fixes #7089.
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.