ekuiper: filters no tags write

This commit is contained in:
fengzero
2026-07-22 06:41:48 +00:00
parent 048cf8dacb
commit 2100b2b7ee
+6 -7
View File
@@ -240,13 +240,12 @@ void recv_data_callback(void *arg)
req->single.tag, req->single.node);
}
} else {
rv = send_write_tags_req(plugin, &req->plural, json_str, trace_flag,
trace_id, span_id);
if (rv == 0) {
if (req->plural.n_tag == 0) {
plog_warn(plugin, "no tags to write on node %s",
req->plural.node);
} else {
if (req->plural.n_tag == 0) {
plog_warn(plugin, "no tags to write on node %s", req->plural.node);
} else {
rv = send_write_tags_req(plugin, &req->plural, json_str, trace_flag,
trace_id, span_id);
if (rv == 0) {
plog_notice(plugin, "write %d tags on node %s",
req->plural.n_tag, req->plural.node);
}