Table of Contents

Class ExceptionTelemetry

Namespace
Microsoft.ApplicationInsights.DataContracts
Assembly
Microsoft.ApplicationInsights.dll
public sealed class ExceptionTelemetry : ITelemetry, ISupportProperties, ISupportAdvancedSampling, ISupportSampling, ISupportMetrics
Inheritance
ExceptionTelemetry
Implements
Inherited Members
Extension Methods

Constructors

ExceptionTelemetry()

public ExceptionTelemetry()

ExceptionTelemetry(IEnumerable<ExceptionDetailsInfo>, SeverityLevel?, string, IDictionary<string, string>, IDictionary<string, double>)

public ExceptionTelemetry(IEnumerable<ExceptionDetailsInfo> exceptionDetailsInfoList, SeverityLevel? severityLevel, string problemId, IDictionary<string, string> properties, IDictionary<string, double> measurements)

Parameters

exceptionDetailsInfoList IEnumerable<ExceptionDetailsInfo>
severityLevel SeverityLevel?
problemId string
properties IDictionary<string, string>
measurements IDictionary<string, double>

ExceptionTelemetry(Exception)

public ExceptionTelemetry(Exception exception)

Parameters

exception Exception

Properties

Context

public TelemetryContext Context { get; }

Property Value

TelemetryContext

Exception

public Exception Exception { get; set; }

Property Value

Exception

ExceptionDetailsInfoList

public IReadOnlyList<ExceptionDetailsInfo> ExceptionDetailsInfoList { get; }

Property Value

IReadOnlyList<ExceptionDetailsInfo>

Extension

public IExtension Extension { get; set; }

Property Value

IExtension

HandledAt

[Obsolete("Use custom properties to report exception handling layer")]
public ExceptionHandledAt HandledAt { get; set; }

Property Value

ExceptionHandledAt

ItemTypeFlag

public SamplingTelemetryItemTypes ItemTypeFlag { get; }

Property Value

SamplingTelemetryItemTypes

Message

public string Message { get; set; }

Property Value

string

Metrics

public IDictionary<string, double> Metrics { get; }

Property Value

IDictionary<string, double>

ProactiveSamplingDecision

public SamplingDecision ProactiveSamplingDecision { get; set; }

Property Value

SamplingDecision

ProblemId

public string ProblemId { get; set; }

Property Value

string

Properties

public IDictionary<string, string> Properties { get; }

Property Value

IDictionary<string, string>

Sequence

public string Sequence { get; set; }

Property Value

string

SeverityLevel

public SeverityLevel? SeverityLevel { get; set; }

Property Value

SeverityLevel?

Timestamp

public DateTimeOffset Timestamp { get; set; }

Property Value

DateTimeOffset

Methods

DeepClone()

public ITelemetry DeepClone()

Returns

ITelemetry

SerializeData(ISerializationWriter)

public void SerializeData(ISerializationWriter serializationWriter)

Parameters

serializationWriter ISerializationWriter

SetParsedStack(StackFrame[])

public void SetParsedStack(StackFrame[] frames)

Parameters

frames StackFrame[]