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
I'm trying to setup distributed tracing in .NET 5 and as a minimum I would like to see the dependency calls of a .NET 5 worker function call in Application Insights.
I expected the worker to set System.Diagnostics.Activity.Current when processing a function invocation, but that is not the case.
So I wrote a middleware which extracts the TraceParent and TraceState properties into an ActivitySource:
but the TraceContext properties are always empty. I don't know if this is an issue in de worker code, or an issue in the functions host.