Fix the timeBucket equal to 0 problem (#1570)
This commit is contained in:
parent
26cebf74ad
commit
9f457f244c
|
|
@ -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