Skip to content

Commit 735e641

Browse files
runderwoedsiper
authored andcommitted
out_kinesis_firehose: enable HTTP debugging for AWS client requests
Signed-off-by: Ryan Underwood <ryan.underwood@mongodb.com>
1 parent 0572b9c commit 735e641

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

plugins/out_kinesis_firehose/firehose.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <fluent-bit/flb_aws_util.h>
3333
#include <fluent-bit/flb_mem.h>
3434
#include <fluent-bit/flb_http_client.h>
35+
#include <fluent-bit/flb_http_client_debug.h>
3536
#include <fluent-bit/flb_utils.h>
3637

3738
#include <fluent-bit/aws/flb_aws_compress.h>
@@ -288,6 +289,12 @@ static int cb_firehose_init(struct flb_output_instance *ins,
288289
ctx->firehose_client->proxy = NULL;
289290
ctx->firehose_client->static_headers = &content_type_header;
290291
ctx->firehose_client->static_headers_len = 1;
292+
#ifdef FLB_HAVE_HTTP_CLIENT_DEBUG
293+
if (flb_http_client_debug_setup(ctx->firehose_client->http_cb_ctx, &ins->properties) < 0) {
294+
flb_plg_error(ctx->ins, "AWS HTTP client debug initialization error");
295+
goto error;
296+
}
297+
#endif
291298

292299
struct flb_upstream *upstream = flb_upstream_create(config, ctx->endpoint,
293300
ctx->port, FLB_IO_TLS,

0 commit comments

Comments
 (0)