Scenario
I have followed this tutorial and created azure function v3
in net core 3.1
to monitor my web application. U used Visual Studio instead of developing it in the portal.
Problem
Unfortunately i received System.NullReferenceException: Object reference not set to an instance of an object.System.Diagnostics.Activity.Current.get returned null.
in line:
availability.Context.Operation.ParentId = Activity.Current.SpanId.ToString();
How to fix that?