File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ private function collectHistograms(): array
383
383
'name ' => $ metaData ['name ' ] . '_sum ' ,
384
384
'labelNames ' => [],
385
385
'labelValues ' => $ decodedLabelValues ,
386
- 'value ' => $ this ->fromBinaryRepresentationAsInteger ($ histogramBuckets [$ labelValues ]['sum ' ]),
386
+ 'value ' => $ this ->fromBinaryRepresentationAsInteger ($ histogramBuckets [$ labelValues ]['sum ' ] ?? 0 ),
387
387
];
388
388
}
389
389
$ histograms [] = new MetricFamilySamples ($ data );
Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ private function collectHistograms(): array
661
661
'name ' => $ metaData ['name ' ] . '_sum ' ,
662
662
'labelNames ' => [],
663
663
'labelValues ' => $ decodedLabelValues ,
664
- 'value ' => $ this ->convertIncrementalIntegerToFloat ($ histogramBuckets [$ labelValues ]['sum ' ]),
664
+ 'value ' => $ this ->convertIncrementalIntegerToFloat ($ histogramBuckets [$ labelValues ]['sum ' ] ?? 0 ),
665
665
];
666
666
}
667
667
$ histograms [] = new MetricFamilySamples ($ data );
You can’t perform that action at this time.
0 commit comments