From 2d2e9311c414748991fddc41787aaa1faa05d421 Mon Sep 17 00:00:00 2001 From: Stewart Webb Date: Thu, 23 May 2024 08:46:55 +1000 Subject: [PATCH] Return error val in case of opentelemetry metric payload decode failure Signed-off-by: Stewart Webb --- plugins/in_opentelemetry/opentelemetry_prot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/in_opentelemetry/opentelemetry_prot.c b/plugins/in_opentelemetry/opentelemetry_prot.c index 07417cd1791..7ea12d939af 100644 --- a/plugins/in_opentelemetry/opentelemetry_prot.c +++ b/plugins/in_opentelemetry/opentelemetry_prot.c @@ -2207,6 +2207,7 @@ static int process_payload_metrics_ng(struct flb_opentelemetry *ctx, } else { flb_plg_warn(ctx->ins, "non-success cmetrics opentelemetry decode result %d", result); + return -1; } return 0;