@@ -841,6 +841,9 @@ static int cb_bigquery_init(struct flb_output_instance *ins,
841
841
flb_sds_destroy (token );
842
842
}
843
843
844
+ /* Setup HTTP debug callbacks */
845
+ flb_output_set_http_debug_callbacks (ins );
846
+
844
847
return 0 ;
845
848
}
846
849
@@ -1014,13 +1017,16 @@ static void cb_bigquery_flush(struct flb_event_chunk *event_chunk,
1014
1017
FLB_OUTPUT_RETURN (FLB_RETRY );
1015
1018
}
1016
1019
1017
- flb_http_buffer_size (c , 4192 );
1020
+ flb_http_buffer_size (c , ctx -> buffer_size );
1018
1021
flb_http_add_header (c , "User-Agent" , 10 , "Fluent-Bit" , 10 );
1019
1022
flb_http_add_header (c , "Content-Type" , 12 , "application/json" , 16 );
1020
1023
1021
1024
/* Compose and append Authorization header */
1022
1025
flb_http_add_header (c , "Authorization" , 13 , token , flb_sds_len (token ));
1023
1026
1027
+ /* Enable HTTP client debug callbacks */
1028
+ flb_http_client_debug (c , ctx -> ins -> callback );
1029
+
1024
1030
/* Send HTTP request */
1025
1031
ret = flb_http_do (c , & b_sent );
1026
1032
@@ -1143,6 +1149,11 @@ static struct flb_config_map config_map[] = {
1143
1149
0 , FLB_TRUE , offsetof(struct flb_bigquery , ignore_unknown_values ),
1144
1150
"Enable ignoring unknown value" ,
1145
1151
},
1152
+ {
1153
+ FLB_CONFIG_MAP_INT , "buffer_size" , "4192" ,
1154
+ 0 , FLB_TRUE , offsetof(struct flb_bigquery , buffer_size ),
1155
+ "Set the HTTP buffer size" ,
1156
+ },
1146
1157
/* EOF */
1147
1158
{0 }
1148
1159
};
0 commit comments