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

Microsoft.ApplicationInsights.Extensibility.IDebugOutput

interface IDebugOutput
Encapsulates method call that has to be compiled with DEBUG compiler constant.
namespace Microsoft.ApplicationInsights.Extensibility { internal interface IDebugOutput { void WriteLine(string message); bool IsLogging(); bool IsAttached(); } }