.NET Agent Installation: Configure Self Hosted WCF Applications

Retrace automatically supports WCF transactions that are hosted within an IIS application. If you are “self hosting” WCF in a Windows Service or similar background app, please use these directions.

1. Configure Retrace to know about and profile your application

By default Retrace only profiles IIS applications. Please review this article on how to tell it to profile your application: .NET Agent Installation: Configure Windows Services

2. Add the Stackify WCF Inspector to your application

A WCF inspector needs to be added to your code and can be installed via a nuget package. This inspector allows Retrace to recognize when transactions begin and end.  Find the nuget package download here: Stackify WCF Inspector

Via nuget:

Install-Package StackifyWCFInspector

3. Configure the WCF Inspector

Note: Configuring the WCF inspector can be done 3 different ways, but only do one of them!