APM Agent language and version:
C#, 1.5.1
Hi!
I'm trying to setup APM logging in a .NET Framework 4.8 application.
I'm getting some logging however the SQL and/or EF instrumentation doesn't seem to work.
I have added the elasticapm module in the web.config
<system.webServer>
<modules>
<remove name="ElasticApmModule"/>
<add name="ElasticApmModule" type="Elastic.Apm.AspNetFullFramework.ElasticApmModule, Elastic.Apm.AspNetFullFramework" preCondition="managedHandler"/>
</modules>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
<remove name="OPTIONSVerbHandler"/>
<remove name="TRACEVerbHandler"/>
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
</system.webServer>
And I have added the EF interceptor
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb"/>
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
</providers>
<interceptors>
<interceptor type="Elastic.Apm.EntityFramework6.Ef6Interceptor, Elastic.Apm.EntityFramework6"/>
</interceptors>
And in global.asax I'm adding the SQL diagnostic subscriber
protected void Application_Start()
{
GlobalConfiguration.Configure(WebApiConfig.Register);
if (Agent.IsConfigured)
{
Agent.Subscribe(new SqlClientDiagnosticSubscriber());
}
}
However the spans doesn't contain any SQL information.
Am I missing some configuration?