<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Extensibility.SdkInternalOperationsMonitor

public static class SdkInternalOperationsMonitor
Helps to define whether thread is performing SDK internal operation at the moment.
namespace Microsoft.ApplicationInsights.Extensibility { public static class SdkInternalOperationsMonitor { public static bool IsEntered(); public static void Enter(); public static void Exit(); } }