APM Agent language and version: Elastic.Apm.NetCoreAll (1.16.0) and .NET 6.0
Original install method (e.g. download page, yum, deb, from source, etc.) and version: Nuget
Fresh install or upgraded from other version? Fresh
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
When I run my solution locally sometimes it seems that the APM Agent does not start. Seems to happen 10-20% of the times.
After calling
DiagnosticListener.AllListeners.Subscribe(new Subscriber());
return builder.UseElasticApm(configuration, new HttpDiagnosticsSubscriber());
I have tried running loglevel at trace and the log files seem nearly identical except we get the following when APM works
When the Agent does not generate Transactions or Spans it seems like it still is collecting metric data.
Agent Initialization stack

