<PackageReference Include="Microsoft.ApplicationInsights" Version="3.0.0-beta1" />

Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.Extensions

static class Extensions
Provides a set of extension methods for tracing.
public static string ToInvariantString(this Exception exception)

Returns a culture-independent string representation of the given exception object, appropriate for diagnostics tracing.