Hi!
We are using apm-agent-dotnet 1.3 in a .NET Core 3.1.1 Web API with Entity Framework Core 3.1.1.
When I add app.UseAllElasticApm(Configuration); and try to start the application it won't entirely load. It just hangs in the browser trying to load the swagger interface.
However if I use
app.UseElasticApm(Configuration);
Then it loads fine but we don't get EF logs.
If I use:
app.UseElasticApm(Configuration, new EfCoreDiagnosticsSubscriber())
Then it works and we get EF logs.
If I use:
app.UseElasticApm(Configuration,
new HttpDiagnosticsSubscriber(),
new EfCoreDiagnosticsSubscriber());
Then it hangs again when trying to load the UI.
The output in visual studio gets spammed with rows similiar to this when using UseAllElasticApm or when registering both subscribers:
Elastic.Apm: Debug: {PayloadSenderV2} Enqueued Transaction. newEventQueueCount: 1. MaxQueueEventCount: 1000. Transaction: Transaction{Id: f50c65a936f30cf8, TraceId: 8a24edee8eb59dfb5a729a14df14cfdb, ParentId: null, Name: POST Meddelande/GetAvdelningar, Type: request, IsSampled: True}.
Elastic.Apm: Debug: {PayloadSenderV2} Enqueued Span. newEventQueueCount: 2. MaxQueueEventCount: 1000. Span: Span{Id: 935a6bfbf005f149, TransactionId: c533a13956749369, ParentId: c533a13956749369, TraceId: 7b7b6716bcdc9fb54362dcc094b4633a, Name: SELECT [a].[Id], [a].[Epost], [a].[Namn] FROM [Avdelning] AS [a], Type: db, IsSampled: True}.
Elastic.Apm: Debug: {HttpDiagnosticListener} Current runtime is not detected as Full Framework - returning implementation for Core. RuntimeInformation.FrameworkDescription: .NET Core 3.1.1
Elastic.Apm: Debug: {DiagnosticInitializer} Subscribed Elastic.Apm.DiagnosticListeners.HttpDiagnosticListenerCoreImpl to `HttpHandlerDiagnosticListener' events source
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {DiagnosticInitializer} Subscribed Elastic.Apm.AspNetCore.DiagnosticListener.AspNetCoreDiagnosticListener to `Microsoft.AspNetCore' events source
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Warning: {HttpDiagnosticListenerImplBase} Failed capturing request (failed to remove from ProcessingRequests) - This Span will be skipped in case it wasn't captured before. Request: method: POST, URL: [REMOVED]
Elastic.Apm: Warning: {HttpDiagnosticListenerImplBase} Failed capturing request (failed to remove from ProcessingRequests) - This Span will be skipped in case it wasn't captured before. Request: method: POST, URL: [REMOVED]
Elastic.Apm: Warning: {HttpDiagnosticListenerImplBase} Failed capturing request (failed to remove from ProcessingRequests) - This Span will be skipped in case it wasn't captured before. Request: method: POST, URL: [REMOVED]
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Debug: {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
Elastic.Apm: Warning: {HttpDiagnosticListenerImplBase} Failed capturing request (failed to remove from ProcessingRequests) - This Span will be skipped in case it wasn't captured before. Request: method: POST, URL: [REMOVED]
Any idea what could cause this?