다음을 통해 공유


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.ISupportAdvancedSampling, Microsoft.ApplicationInsights.DataContracts.ISupportMetrics, Microsoft.ApplicationInsights.DataContracts.ISupportProperties
type ExceptionTelemetry = class
    interface ITelemetry
    interface ISupportProperties
    interface ISupportAdvancedSampling
    interface ISupportSampling
    interface ISupportMetrics
Public NotInheritable Class ExceptionTelemetry
Implements ISupportAdvancedSampling, ISupportMetrics, ISupportProperties, ITelemetry
Inheritance
ExceptionTelemetry
Implements

Remarks

Additional exception details will need to be tracked manually.

Constructors

ExceptionTelemetry()

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

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>)

Initializes a new instance of the ExceptionTelemetry class.

Properties

Context

Gets the context associated with the current telemetry item.

Exception

Gets or sets the original exception tracked by this ITelemetry.

ExceptionDetailsInfoList

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

Extension

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

HandledAt
Obsolete.

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

ItemTypeFlag

Gets item type for sampling evaluation.

Message

Gets or sets ExceptionTelemetry message.

Metrics

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

ProactiveSamplingDecision

Gets or sets a value indicating whether item sampling decision was made pro-actively and result of this decision.

ProblemId

Gets or sets the problemId.

Properties

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

Sequence

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

SeverityLevel

Gets or sets Exception severity level.

Timestamp

Gets or sets date and time when telemetry was recorded.

Methods

DeepClone()

Deeply clones a ExceptionTelemetry object.

SerializeData(ISerializationWriter)

Writes serialization info about the data class of the implementing type using the given ISerializationWriter.

SetParsedStack(StackFrame[])

Set parsedStack from an array of StackFrame objects.

Explicit Interface Implementations

ISupportSampling.SamplingPercentage

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

ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

Extension Methods

GetEnvelopeName(ITelemetry)

Gets envelope name for ITelemetry object.

TrySetEnvelopeName(ITelemetry, String)

Sets envelope name for ITelemetry object.

Applies to