You are looking at preliminary documentation for a future release.
Not what you want? See the
current release documentation.
Entity Framework Coreedit
Quick startedit
Instrumentation can be enabled for Entity Framework Core by referencing Elastic.Apm.EntityFrameworkCore
package
and passing EfCoreDiagnosticsSubscriber
to the UseElasticApm
method in case of ASP.NET Core as following
or passing EfCoreDiagnosticsSubscriber
to the Subscribe
method
Agent.Subscribe(new EfCoreDiagnosticsSubscriber());
Instrumentation listens for diagnostic events raised by Microsoft.EntityFrameworkCore
2.x+, creating database spans for executed commands.