From: Florian Forster Date: Fri, 15 Dec 2023 14:39:17 +0000 (+0100) Subject: format_json: Add a missing "array open" call. X-Git-Tag: 6.0.0-rc0~18^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4de9e987c5ba9a48099918575a84f94f96bb919;p=thirdparty%2Fcollectd.git format_json: Add a missing "array open" call. --- diff --git a/src/utils/format_json/open_telemetry.c b/src/utils/format_json/open_telemetry.c index df9ece65f..4a754b18d 100644 --- a/src/utils/format_json/open_telemetry.c +++ b/src/utils/format_json/open_telemetry.c @@ -77,6 +77,7 @@ static int number_data_point(yajl_gen g, metric_t const *m) { CHECK(yajl_gen_map_open(g)); /* BEGIN NumberDataPoint */ CHECK(json_add_string(g, "attributes")); + CHECK(yajl_gen_array_open(g)); for (size_t i = 0; i < m->label.num; i++) { CHECK(key_value(g, m->label.ptr[i])); }