You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Check if `tracer.InternalActiveScope == null` (AsyncLocal didn't flow)
341
+
2. Try to get HttpContext from `context.Items["__AspNetCoreHttpContext__"]`
342
+
3. Try to get scope from `httpContext.Items["__Datadog.Trace.AspNetCore.ActiveScope"]`
343
+
4. Use scope as parent if found, otherwise fall back to header extraction
344
+
- Only uses HttpContext.Items when AsyncLocal fails (maintains backward compatibility)
345
+
346
+
**Next Steps**:
347
+
1. Deploy updated NuGet package to `lucasp-premium-linux-isolated-aspnet`
348
+
2. Trigger HttpTest function
349
+
3. Download and analyze traces to verify:
350
+
- Worker's `azure_functions.invoke` is now child of `aspnet_core.request`
351
+
- All spans in same trace
352
+
- Correct parent_id relationships
353
+
354
+
**Pending**:
355
+
- Step 3: Skip host span creation when HTTP proxying is detected (secondary priority)
356
+
305
357
## References
306
358
307
359
-[Azure Functions ASP.NET Core Integration](https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=hostbuilder%2Cwindows#aspnet-core-integration)
0 commit comments