From 3c323ca7d797e741c1e722f0ff4bdc353a8be6c7 Mon Sep 17 00:00:00 2001 From: "Boslet, Cory (cb645j)" Date: Wed, 13 Mar 2024 16:05:46 -0400 Subject: [PATCH] Fixed compilation error --- plugins/out_opentelemetry/opentelemetry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/out_opentelemetry/opentelemetry.c b/plugins/out_opentelemetry/opentelemetry.c index 87c270f9ed8..eedc9193f69 100644 --- a/plugins/out_opentelemetry/opentelemetry.c +++ b/plugins/out_opentelemetry/opentelemetry.c @@ -1139,10 +1139,10 @@ static int process_logs(struct flb_event_chunk *event_chunk, struct opentelemetry_context *ctx; struct flb_record_accessor *ra_match; - flb_plg_info(ctx->ins, "Process Logs"); - ctx = (struct opentelemetry_context *) out_context; + flb_plg_info(ctx->ins, "Process Logs"); + log_record_list = (Opentelemetry__Proto__Logs__V1__LogRecord **) flb_calloc(ctx->batch_size, sizeof(Opentelemetry__Proto__Logs__V1__LogRecord *)); if (!log_record_list) {