ArraySegment ArgumentException in PrometheusCollectionManager on results write #5709
Labels
bug
Something isn't working
pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore
Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
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(Batch
1 metrics)
Screenshot:
Steps to Reproduce
See Desc.
Expected Result
Metrics returned
Actual Result
After some time, metrics not returned.
Additional Context
No response
The text was updated successfully, but these errors were encountered: