Search code examples
appfabric

AppFabric asynchronous WCF services duration time


In Windows Server AppFabric IIS dashboard, I see call duration 0 for some of the WCF services, while it is clearly not 0 (IIS logs also prove that). This only happens to asynchronous services (task-based async). Is this expected? Is there a way to fix this?


Solution

  • AppFabric WCF statistics share many things with WCF performance counters & WCF analytic tracing.

    Unfortunately, when working with async operation call duration, call duration is simply not supported because of the worker/IO thread switch.

    You can find here and here more informations

    When used on an asynchronous WCF service the Call Duration counter will always return -1.

    You can try to emit user-defined events to track operations duration, but this will be be visible in the dashboard.