Commit 07eb51ec by fudahua

traceId

parent 2aa77451
......@@ -5,6 +5,7 @@ import com.gic.binlog.base.entity.GicField;
import com.gic.binlog.base.entity.GicRecord;
import com.gic.binlog.base.entity.enums.GicRecordType;
import com.gic.commons.util.EntityUtil;
import com.gic.dubbo.entity.ProviderLocalTag;
import com.gic.haoban.contacts.manage.api.enums.StatusEnum;
import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
import com.gic.haoban.manage.service.pojo.BinlogBasePojo;
......@@ -39,6 +40,9 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
@Override
public void onMessage(ConsumerRecord<String, GicRecord> record) {
ProviderLocalTag providerLocalTag = ProviderLocalTag.tag.get();
providerLocalTag.traceId = UUID.randomUUID().toString();
logger.info("message:{}", JSONObject.toJSONString(record.value()));
if(record.value()==null){
logger.info("数据为空");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment