I am developing a Windows Forms application which makes a WCF call to a WCF service. In the devepment environment everything is hosted on the same server. Before each WCF call I have the line of code:
System.Diagnostics.Trace.CorrelationManager.ActivityID = Guid.NewGuid
Any trace messages I write using commands of the form My.Application.Log.WriteEntry use this activity id and i can see these trace messages grouped under the same activityid in the ServiceTraceViewer. However, all logs events created by WCF have the default
activityid so are not grouped with my custom trace messages.
In my config file I have the propogateActivity attribute set to True so i am not sure what I am doing wrong.
Any help would be much appreciated.
View Complete Post