By default, all ASP.NET 4.x application deployed to IIS are instrumented.
The installer enables IIS instrumentation for .NET Framework
by setting the Environment
registry key for W3SVC and WAS services
located in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
folder.
Edit the web.config
file of your application to add the required settings inside the <appSettings>
block:
<add key="SIGNALFX_SERVICE_NAME" value="my-service-name" />
<add key="SIGNALFX_ENV" value="production" />
Add the following environmentVariable
elements inside the <aspNetCore>
block of your web.config
file:
<environmentVariables>
<environmentVariable name="CORECLR_ENABLE_PROFILING" value="1" />
<environmentVariable name="CORECLR_PROFILER" value="{B4C89B0F-9908-4F73-9F59-0D77C5A06874}" />
<environmentVariable name="SIGNALFX_SERVICE_NAME" value="my-service-name" />
<environmentVariable name="SIGNALFX_ENV" value="production" />
</environmentVariables>