Configuring Instrumentation

Although any enterprise application needs instrumentation to satisfy operators, it is always useful if the platform also has instrumentation built in so you as an application developer don't have to be concerned about all the details of supporting instrumentation. Just like logging and tracing, you can enable performance counters and WMI from within the application configuration or the configuration tool for both the client side and the service side. You can also set the performanceCountersEnabled property to ServiceOnly. Listing 3-21 shows how you do this in an application configuration file.

Example. Application Configuration with Instrumentation Enabled
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> ...

Get Pro WCF: Practical Microsoft SOA Implementation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.