Hi, I am trying to install APM on a .net application using the Profiling Auto instrumentation method according to the following document: Profiler Auto instrumentation | APM .NET Agent Reference [1.x] | Elastic
I have set the path according to the documentation as follows:
When I try to run the application there is an error like the following:
Exception: System.PlatformNotSupportedException: Performance Counters are not supported on this platform.
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
at Elastic.Apm.Metrics.MetricsProvider.SystemTotalCpuProvider.GetSamples() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_v1.20.0\apm-agent-dotnet\src\Elastic.Apm\Metrics\MetricsProvider\SystemTotalCpuProvider.cs:line 109