-
Notifications
You must be signed in to change notification settings - Fork 881
ArraySegment ArgumentException in PrometheusCollectionManager on results write #5709
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingpkg:OpenTelemetry.Exporter.Prometheus.AspNetCoreIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet packageIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
Description
Package
OpenTelemetry.Exporter.Prometheus.AspNetCore
Package Version
| Package Name | Version |
|---|---|
| OpenTelemetry | 1.9.0 |
| OpenTelemetry.Exporter.Prometheus.AspNetCore | 1.9.0-beta.1 |
| OpenTelemetry.Extensions.Hosting | 1.9.0 |
| OpenTelemetry.Instrumentation.AspNetCore | 1.8.1 |
| OpenTelemetry.Instrumentation.Http | 1.8.1 |
| OpenTelemetry.Instrumentation.Process | 0.5.0-beta.5 |
| OpenTelemetry.Instrumentation.Runtime | 1.8.1 |
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.ArraySegment1..ctor(T[] array, Int32 offset, Int32 count)
at OpenTelemetry.Exporter.Prometheus.PrometheusCollectionManager.OnCollect(Batch1 metrics)
Steps to Reproduce
See Desc.
Expected Result
Metrics returned
Actual Result
After some time, metrics not returned.
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpkg:OpenTelemetry.Exporter.Prometheus.AspNetCoreIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet packageIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
