Fix the timeBucket equal to 0 problem (#1570)

This commit is contained in:
chenqy 2018-08-21 17:22:39 +08:00 committed by Wu Sheng
parent 26cebf74ad
commit 9f457f244c
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ public class ServiceReferenceMetricSpanListener implements EntrySpanListener, Ex
}
@Override public void parseExit(SpanDecorator spanDecorator, SegmentCoreInfo segmentCoreInfo) {
if (this.minuteTimeBucket == 0) {
this.minuteTimeBucket = segmentCoreInfo.getMinuteTimeBucket();
}
ServiceReferenceMetric serviceReferenceMetric = new ServiceReferenceMetric();
int peerId = spanDecorator.getPeerId();