Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.25 KB

iis-instrumentation.md

File metadata and controls

29 lines (22 loc) · 1.25 KB

Instrument an ASP.NET application deployed on IIS

Instrument an ASP.NET 4.x application

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" />

Instrument an ASP.NET Core application

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>