On collect metrics exception thrown in PrometheusCollectionManager
CallStack:
System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. at System.ArraySegment1..ctor(T[] array, Int32 offset, Int32 count)
at OpenTelemetry.Exporter.Prometheus.PrometheusCollectionManager.OnCollect(Batch1 metrics)
Package
OpenTelemetry.Exporter.Prometheus.AspNetCore
Package Version
Runtime Version
net6.0
Description
On collect metrics exception thrown in PrometheusCollectionManager CallStack:
System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. at System.ArraySegment
1..ctor(T[] array, Int32 offset, Int32 count) at OpenTelemetry.Exporter.Prometheus.PrometheusCollectionManager.OnCollect(Batch1 metrics)
Screenshot:
Steps to Reproduce
See Desc.
Expected Result
Metrics returned
Actual Result
After some time, metrics not returned.
Additional Context
No response