ZBXNEXT-4907, zabbix[stats] internal item and zabbix.stats agent active items were added. Although they have queue mode, online helps are lacked.
So, I attached the patch.
In addition, send_internal_stats_json() is following.
948 if (SUCCEED == zbx_json_value_by_name(jp, ZBX_PROTO_TAG_TYPE, type, sizeof(type)) &&
949 0 == strcmp(type, ZBX_PROTO_VALUE_ZABBIX_STATS_QUEUE))
In l.948, type is not ZBX_PROTO_VALUE_ZABBIX_STATS_QUEUE, it executes for data mode. It should be "error"