ExceptionTelemetry ExceptionTelemetry ExceptionTelemetry Class

Definition

Telemetry type used to track exceptions. This will capture TypeName, Message, and CallStack. Learn more

public sealed class ExceptionTelemetry : Microsoft.ApplicationInsights.Channel.ITelemetry, Microsoft.ApplicationInsights.DataContracts.ISupportMetrics, Microsoft.ApplicationInsights.DataContracts.ISupportProperties, Microsoft.ApplicationInsights.DataContracts.ISupportSampling
type ExceptionTelemetry = class
    interface ITelemetry
    interface ISupportProperties
    interface ISupportSampling
    interface ISupportMetrics
Public NotInheritable Class ExceptionTelemetry
Implements ISupportMetrics, ISupportProperties, ISupportSampling, ITelemetry
Inheritance
ExceptionTelemetryExceptionTelemetryExceptionTelemetry
Implements

Remarks

Additional exception details will need to be tracked manually.

Constructors

ExceptionTelemetry() ExceptionTelemetry() ExceptionTelemetry()

Initializes a new instance of the ExceptionTelemetry class with empty properties.

ExceptionTelemetry(Exception) ExceptionTelemetry(Exception) ExceptionTelemetry(Exception)

Initializes a new instance of the ExceptionTelemetry class with empty properties.

ExceptionTelemetry(IEnumerable<ExceptionDetailsInfo>, Nullable<SeverityLevel>, String, IDictionary<String,String>, IDictionary<String,Double>) ExceptionTelemetry(IEnumerable<ExceptionDetailsInfo>, Nullable<SeverityLevel>, String, IDictionary<String,String>, IDictionary<String,Double>) ExceptionTelemetry(IEnumerable<ExceptionDetailsInfo>, Nullable<SeverityLevel>, String, IDictionary<String,String>, IDictionary<String,Double>)

Initializes a new instance of the ExceptionTelemetry class.

Properties

Context Context Context

Gets the context associated with the current telemetry item.

Exception Exception Exception

Gets or sets the original exception tracked by this ITelemetry.

ExceptionDetailsInfoList ExceptionDetailsInfoList ExceptionDetailsInfoList

Gets the list of ExceptionDetailsInfo. User can modify the contents of individual object, but not the list itself.

Extension Extension Extension

Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.

HandledAt HandledAt HandledAt

Gets or sets the value indicated where the exception was handled.

Message Message Message

Gets or sets ExceptionTelemetry message.

Metrics Metrics Metrics

Gets a dictionary of application-defined exception metrics. Learn more

ProblemId ProblemId ProblemId

Gets or sets the problemId.

Properties Properties Properties

Gets a dictionary of application-defined property names and values providing additional information about this exception. Learn more

Sequence Sequence Sequence

Gets or sets the value that defines absolute order of the telemetry item.

SeverityLevel SeverityLevel SeverityLevel

Gets or sets Exception severity level.

Timestamp Timestamp Timestamp

Gets or sets date and time when telemetry was recorded.

Methods

DeepClone() DeepClone() DeepClone()

Deeply clones a ExceptionTelemetry object.

SerializeData(ISerializationWriter) SerializeData(ISerializationWriter) SerializeData(ISerializationWriter)
SetParsedStack(StackFrame[]) SetParsedStack(StackFrame[]) SetParsedStack(StackFrame[])

Set parsedStack from an array of StackFrame objects.

Explicit Interface Implementations

ITelemetry.Sanitize() ITelemetry.Sanitize() ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage

Gets or sets data sampling percentage (between 0 and 100). Should be 100/n where n is an integer. Learn more

Applies to