Skip to content

Commit

Permalink
out_opensearch: fixed wrong payload buffer usage for traces
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Aug 7, 2024
1 parent 30b6522 commit c683d8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/out_opensearch/opensearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,9 @@ static void cb_opensearch_flush(struct flb_event_chunk *event_chunk,
pack = flb_msgpack_raw_to_json_sds(event_chunk->data, event_chunk->size);
if (pack) {
ret = 0;

out_buf = (void *) pack;
out_size = cfl_sds_len(pack);
}
else {
ret = -1;
Expand Down

0 comments on commit c683d8e

Please sign in to comment.