用千分尺替换指标

时间:2018-10-19 14:53:32

标签: spring-boot

当前,我们正在从springboot 1.5迁移到springboot2.x。指标由springboot 1.5支持,并且已从springboot 2.x版本中删除。谁能帮忙用千分尺代替这些指标吗?

@autowired
private JmxMetricWriter jmxMetricWriter;

public void process(Exchange exchange) throws Exception {
    LOG.info("Message Succeed to be processed");
    jmxMetricWriter.increment(legacyShipmentsProperties.getShipmentsSuccessMetricName(), 1);
}

0 个答案:

没有答案