TelemetrySessionExtensions.PostFault Method

Definition

Overloads

PostFault(TelemetrySession, String, String)

Post a Fault event. The event will always be sent to AppInsights, but if it passes sampling, it gets posted to Wason as well. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String, FaultSeverity)

Post a Fault event. The event will always be sent to AppInsights, but if it passes sampling, it gets posted to Wason as well. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String, Exception)

Post a Fault Event with a managed Exception object. The bucket parameters are created from the exception object. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String, FaultSeverity, Exception)

Post a Fault Event with a managed Exception object. The bucket parameters are created from the exception object. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String, Exception, Func<IFaultUtility,Int32>)

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String, FaultSeverity, Exception, Func<IFaultUtility,Int32>)

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String, Exception, Func<IFaultUtility,Int32>, TelemetryEventCorrelation[])

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String, FaultSeverity, Exception, Func<IFaultUtility,Int32>, TelemetryEventCorrelation[])

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

PostFault(TelemetrySession, String, String)

Post a Fault event. The event will always be sent to AppInsights, but if it passes sampling, it gets posted to Wason as well. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String

The desription is not put in a bucket parameter, but it is in the ErrorInformation.txt file in the Cab file sent to Watson, and in the AI event

Returns

The fault event correlation.

Applies to

PostFault(TelemetrySession, String, String, FaultSeverity)

Post a Fault event. The event will always be sent to AppInsights, but if it passes sampling, it gets posted to Wason as well. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description, Microsoft::VisualStudio::Telemetry::FaultSeverity faultSeverity);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description, Microsoft.VisualStudio.Telemetry.FaultSeverity faultSeverity);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string * Microsoft.VisualStudio.Telemetry.FaultSeverity -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String, faultSeverity As FaultSeverity) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String

The desription is not put in a bucket parameter, but it is in the ErrorInformation.txt file in the Cab file sent to Watson, and in the AI event

faultSeverity
FaultSeverity

The severity of the fault, used to identify actionable or important faults in divisional tools and reporting.

Returns

The fault event correlation.

Applies to

PostFault(TelemetrySession, String, String, Exception)

Post a Fault Event with a managed Exception object. The bucket parameters are created from the exception object. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description, Exception ^ exceptionObject);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description, Exception exceptionObject);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string * Exception -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String, exceptionObject As Exception) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String
exceptionObject
Exception

Returns

The fault event correlation.

Applies to

PostFault(TelemetrySession, String, String, FaultSeverity, Exception)

Post a Fault Event with a managed Exception object. The bucket parameters are created from the exception object. It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description, Microsoft::VisualStudio::Telemetry::FaultSeverity faultSeverity, Exception ^ exceptionObject);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description, Microsoft.VisualStudio.Telemetry.FaultSeverity faultSeverity, Exception exceptionObject);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string * Microsoft.VisualStudio.Telemetry.FaultSeverity * Exception -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String, faultSeverity As FaultSeverity, exceptionObject As Exception) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String
faultSeverity
FaultSeverity

The severity of the fault, used to identify actionable or important faults in divisional tools and reporting.

exceptionObject
Exception

Returns

The fault event correlation.

Applies to

PostFault(TelemetrySession, String, String, Exception, Func<IFaultUtility,Int32>)

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description, Exception ^ exceptionObject, Func<Microsoft::VisualStudio::Telemetry::IFaultUtility ^, int> ^ gatherEventDetails);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description, Exception exceptionObject, Func<Microsoft.VisualStudio.Telemetry.IFaultUtility,int> gatherEventDetails);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string * Exception * Func<Microsoft.VisualStudio.Telemetry.IFaultUtility, int> -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String, exceptionObject As Exception, gatherEventDetails As Func(Of IFaultUtility, Integer)) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String
exceptionObject
Exception

can be null

gatherEventDetails
Func<IFaultUtility,Int32>

Allows the user to provide code to execute synchronously to gather computationally expensive info about the event

Returns

The fault correlation.

Applies to

PostFault(TelemetrySession, String, String, FaultSeverity, Exception, Func<IFaultUtility,Int32>)

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description, Microsoft::VisualStudio::Telemetry::FaultSeverity faultSeverity, Exception ^ exceptionObject, Func<Microsoft::VisualStudio::Telemetry::IFaultUtility ^, int> ^ gatherEventDetails);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description, Microsoft.VisualStudio.Telemetry.FaultSeverity faultSeverity, Exception exceptionObject, Func<Microsoft.VisualStudio.Telemetry.IFaultUtility,int> gatherEventDetails);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string * Microsoft.VisualStudio.Telemetry.FaultSeverity * Exception * Func<Microsoft.VisualStudio.Telemetry.IFaultUtility, int> -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String, faultSeverity As FaultSeverity, exceptionObject As Exception, gatherEventDetails As Func(Of IFaultUtility, Integer)) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String
faultSeverity
FaultSeverity

The severity of the fault, used to identify actionable or important faults in divisional tools and reporting.

exceptionObject
Exception

can be null

gatherEventDetails
Func<IFaultUtility,Int32>

Allows the user to provide code to execute synchronously to gather computationally expensive info about the event

Returns

The fault correlation.

Applies to

PostFault(TelemetrySession, String, String, Exception, Func<IFaultUtility,Int32>, TelemetryEventCorrelation[])

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description, Exception ^ exceptionObject, Func<Microsoft::VisualStudio::Telemetry::IFaultUtility ^, int> ^ gatherEventDetails, cli::array <Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation> ^ correlatedWith);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description, Exception exceptionObject, Func<Microsoft.VisualStudio.Telemetry.IFaultUtility,int> gatherEventDetails, Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation[] correlatedWith);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string * Exception * Func<Microsoft.VisualStudio.Telemetry.IFaultUtility, int> * Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation[] -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String, exceptionObject As Exception, gatherEventDetails As Func(Of IFaultUtility, Integer), correlatedWith As TelemetryEventCorrelation()) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String
exceptionObject
Exception

can be null

gatherEventDetails
Func<IFaultUtility,Int32>

Allows the user to provide code to execute synchronously to gather computationally expensive info about the event

correlatedWith
TelemetryEventCorrelation[]

Specify which events to correlate by using property Correlation Good candidates to correlate with FaultEvent are, UserTaskEventOperationEvent

Returns

The fault correlation.

Applies to

PostFault(TelemetrySession, String, String, FaultSeverity, Exception, Func<IFaultUtility,Int32>, TelemetryEventCorrelation[])

Post a fault event with an exception object and a callback. The callback can be used to calculate expensive data to be sent to the Watson back end, such as JScript callstacks, etc It becomes more useful when correlated with UserTaskEvent or OperationEvent which may have led to the fault occurence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation PostFault(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, System::String ^ eventName, System::String ^ description, Microsoft::VisualStudio::Telemetry::FaultSeverity faultSeverity, Exception ^ exceptionObject, Func<Microsoft::VisualStudio::Telemetry::IFaultUtility ^, int> ^ gatherEventDetails, cli::array <Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation> ^ correlatedWith);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation PostFault (this Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, string eventName, string description, Microsoft.VisualStudio.Telemetry.FaultSeverity faultSeverity, Exception exceptionObject, Func<Microsoft.VisualStudio.Telemetry.IFaultUtility,int> gatherEventDetails, Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation[] correlatedWith);
static member PostFault : Microsoft.VisualStudio.Telemetry.TelemetrySession * string * string * Microsoft.VisualStudio.Telemetry.FaultSeverity * Exception * Func<Microsoft.VisualStudio.Telemetry.IFaultUtility, int> * Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation[] -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
<Extension()>
Public Function PostFault (telemetrySession As TelemetrySession, eventName As String, description As String, faultSeverity As FaultSeverity, exceptionObject As Exception, gatherEventDetails As Func(Of IFaultUtility, Integer), correlatedWith As TelemetryEventCorrelation()) As TelemetryEventCorrelation

Parameters

telemetrySession
TelemetrySession
eventName
String

An event name following data model schema. It requires that event name is a unique, not null or empty string. It consists of 3 parts and must follows pattern [product]/[featureName]/[entityName]. FeatureName could be a one-level feature or feature hierarchy delimited by "/". For examples, vs/platform/opensolution; vs/platform/editor/lightbulb/fixerror;

description
String
faultSeverity
FaultSeverity

The severity of the fault, used to identify actionable or important faults in divisional tools and reporting.

exceptionObject
Exception

can be null

gatherEventDetails
Func<IFaultUtility,Int32>

Allows the user to provide code to execute synchronously to gather computationally expensive info about the event

correlatedWith
TelemetryEventCorrelation[]

Specify which events to correlate by using property Correlation Good candidates to correlate with FaultEvent are, UserTaskEventOperationEvent

Returns

The fault correlation.

Applies to