This page describes how to configure the AppDynamics .NET Machine agent to enable instrumentation for Windows Communication Foundation (WCF) Data Services including WCF RIA Services for Microsoft LightSwitch.

  1. Open the config.xml file for editing as administrator. See Administer the .NET Agent.

  2. Copy the code block below to a child element of the Machine Agent element. See .NET Agent Configuration Properties.

        <instrumentation>
            <instrumentor name="WCFDSEntryInstrumentor" enabled="true" />
        </instrumentation>
    
    CODE

    For example:

    <?xml version="1.0" encoding="utf-8"?>
    <appdynamics-agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    ...
     <machine-agent>
        <!--Enable instrumentation for WCF Data Services correlation-->
        <instrumentation>
            <instrumentor name="WCFDSEntryInstrumentor" enabled="true" /> 
        </instrumentation>
      </machine-agent>
    ...
    </appdynamics-agent>
    
    CODE

    The configuration syntax is enabled="true".

  3. Save the config.xml file.

  4. Restart the AppDyanmics.Agent.Coordinator service.

  5. Restart instrumented applications for your changes to take effect.