dd-trace-dotnet icon indicating copy to clipboard operation
dd-trace-dotnet copied to clipboard

Capturing sub traces of ActivityTriggers in Durable Orchestrations of AzureFunctions

Open zippy1981 opened this issue 2 years ago • 0 comments

One problem I've had at my client is while APM traces capture all the SQL and http client child traces of our ASP.NET Core MVC calls, HttpTriggers and OrchestrationTriggers. However, the Orchestrations call individual ActivityTrigger functions which do get traces produced. HOWEVER, the HttpClient and Sqlclient child spans of the ActivityTriggers DO NOT show up.

I think the answer is explicitly referencing ActivityTriggers around here:

https://github.com/DataDog/dd-trace-dotnet/blob/49c3f4c0206e71d180e64167b9281c6767f77625/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/AzureFunctionsCommon.cs#L71

I have gotten ia simple orchestration function app to run and for the Datadog.Trace.dll code to load in it from a checkout of the git repo, However, I can't get it to actually hit breakpoints yet. Working on that at the moment.

zippy1981 avatar Jun 09 '22 01:06 zippy1981