I have been looking into using Extended Events in a full end-to-end tracing scenario. I am especially interested in the XEvent's activity id that helps follow event execution sequence for a given activity.
You will have guessed, my event session in SQL Server 2008 has the following option set:
TRACK_CAUSALITY = ON
My question to you is, when executing SQL queries from C# code (Linq, Entity Framework, etc...), is it possible to infer the activity id that will be traced by the extended events in SQL Server?
For instance, I would like to be able to propagate the CorrelationManager.ActivityId guid of my executing thread to SQL Server for XEvent tracing.
Many thanks