Fix the timeBucket equal to 0 problem (#1570)
This commit is contained in:
parent
0162fdd8ae
commit
46c0e76ef9
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue