We use prometheus-net.DotNetMetrics
for system monitoring in ASP .net6 application. And when we started using Elastic.Apm
library, the dotnet_exceptions_total metric began to show increased values for System.NotSupportedException
exceptions.
dotnet-trace shows, that the reason is in DataFlow library. Exceptions have message:
This member is not supported on this dataflow block. The block is
intended for a specific purpose that does not utilize this member.
These exceptions are catched in DataFlow, but create noise in the metric and can affect performance.
Source code, where exception is cached:
https://github.com/dotnet/runtime/blob/dc0432bcb6e7afba54c426f15d03fe8c8fd0d0aa/src/libraries/System.Threading.Tasks.Dataflow/src/Internal/Common.cs#L384
We have this problem in kubernetes pods, but not in the local machine under the Windows.
Has anyone encountered such a problem?