I haven't had much luck getting the .NET agent to display in Kibana. I downloaded the Elastic.Apm.AspNetFullFramework package and moved the dll's related to dotnet versions 4.5 and 4.6 to the bin folder of the site.
I updated the web.config file with the following:
-
Added the ElasticAPM module
<modules> <add name="ElasticApmModule" type="Elastic.Apm.AspNetFullFramework.ElasticApmModule, Elastic.Apm.AspNetFullFramework" /> </modules> -
Added configuration settings for the APM
<appSettings> <add key="ElasticApm:ServerUrls" value="http://APMSERVERNAME:8200" /> <add key="ElasticApm:ServiceNodeName" value="SITENAME" /> <add key="ElasticApm:CaptureBody" value="all" /> </appSettings> -
Had to bind the System.Net.Http version to get past an error the site was receiving after adding the APM entries
<assemblyBinding> <dependentAssembly> <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.0.0.0" /> </dependentAssembly> </assemblyBinding>
The site seems a bit unstable after making these changes. Sometimes I receive a 500 error, but this is sporadic and I haven't been able to figure out the root cause. When the site does load, I don't receive any transaction data in Kibana like I would expect. Any ideas/suggestions?