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

Microsoft.ApplicationInsights.DataContracts.ExceptionTelemetry

Telemetry type used to track exceptions. This will capture TypeName, Message, and CallStack. Learn more
namespace Microsoft.ApplicationInsights.DataContracts { public sealed class ExceptionTelemetry : ITelemetry, ISupportProperties, ISupportAdvancedSampling, ISupportSampling, ISupportMetrics, IAiSerializableTelemetry { public DateTimeOffset Timestamp { get; set; } public string Sequence { get; set; } public TelemetryContext Context { get; } public IExtension Extension { get; set; } public string ProblemId { get; set; } public ExceptionHandledAt HandledAt { get; set; } public Exception Exception { get; set; } public string Message { get; set; } public IDictionary<string, double> Metrics { get; } public IReadOnlyList<ExceptionDetailsInfo> ExceptionDetailsInfoList { get; } public IDictionary<string, string> Properties { get; } public SeverityLevel? SeverityLevel { get; set; } public SamplingTelemetryItemTypes ItemTypeFlag { get; } public SamplingDecision ProactiveSamplingDecision { get; set; } public ExceptionTelemetry(); public ExceptionTelemetry(Exception exception); public ExceptionTelemetry(IEnumerable<ExceptionDetailsInfo> exceptionDetailsInfoList, SeverityLevel? severityLevel, string problemId, IDictionary<string, string> properties, IDictionary<string, double> measurements); public ITelemetry DeepClone(); public void SerializeData(ISerializationWriter serializationWriter); public void SetParsedStack(System.Diagnostics.StackFrame[] frames); } }