Commit 9116d96c by 崔彦峰

perf(goods): 优化商品上架审核服务性能监控

- 添加商品上架审核开始和结束的日志记录
- 增加审核耗时统计功能
- 记录businessCode用于追踪审核流程
- 添加执行时间消耗的日志输出
1 parent ab9a4576
...@@ -308,7 +308,10 @@ public class GoodsListingApprovalService { ...@@ -308,7 +308,10 @@ public class GoodsListingApprovalService {
.operatorType(LogOperatorType.APPROVE.getValue()) .operatorType(LogOperatorType.APPROVE.getValue())
.updatedBy(record.getUpdatedBy()).updatedDate(now) .updatedBy(record.getUpdatedBy()).updatedDate(now)
.build()); .build());
log.info("商品上架审核start,businessCode:{}",record.getBusinessCode());
long l = System.currentTimeMillis();
thiz.publishApprovedListingData(record.getBusinessCode(), record.getUpdatedBy()); thiz.publishApprovedListingData(record.getBusinessCode(), record.getUpdatedBy());
log.info("商品上架审核end,businessCode:{} consuming:{} ms",record.getBusinessCode(),System.currentTimeMillis() - l);
return true; return true;
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!