public async Task <string> Get() { using (Tracer.BuildSpan("DemoController-Get-" + HttpContext.TraceIdentifier).StartActive(true)) { Tracer.ActiveSpan.Log("Logged in controller"); await ServiceA.GetServiceAMessageTest1Async(HttpContext.TraceIdentifier); } Tracer.ActiveSpan.Log("Outside the Span in DemoController"); return("Hello World"); }