Microsoft.SharePoint.Diagnostics.Service namespace

SharePoint 2013

  Class Description
Public class SPServiceDiagnosticsContext Encapsulates diagnostics information about an individual Windows Communication Foundation (WCF) call in a service application in SharePoint 2013.
Public class SPServiceDiagnosticsContextBehavior This is the helper class to transfer the diagnostics context to the I/O thread of WCF calls on Web Front End servers. Unlike normal ASP.NET request, WCF service hosted in IIS has its own thread model, the original worker thread created by ASP.NET was suspened, an async I/O thread from the thread pool is created to serve the request. In order to ensure Developer Dashboard tracks the data correctly in WCF service, the instance of this class should be added to the dispatch behaviors of end point.