C# Class Microsoft.ApplicationInsights.WindowsServer.FirstChanceExceptionStatisticsTelemetryModule

The module subscribed to AppDomain.CurrentDomain.FirstChanceException to send exceptions statistics to ApplicationInsights.
Inheritance: ITelemetryModule, IDisposable
Afficher le fichier Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposing TaskSchedulerOnUnobservedTaskException instance. This class doesn't have the finalize method as we expect it live for a duration of the process and be disposed by AI infrastructure.

FirstChanceExceptionStatisticsTelemetryModule ( ) : System

Initializes a new instance of the FirstChanceExceptionStatisticsTelemetryModule class.

Initialize ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : void

Initializes the telemetry module.

Private Methods

Méthode Description
CalculateStatistics ( object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs firstChanceExceptionArgs ) : void
Dispose ( bool disposing ) : void

IDisposable implementation.

FirstChanceExceptionStatisticsTelemetryModule ( Action registerAction, Action unregisterAction ) : System
GetDimCappedString ( string value, ConcurrentBag capValues ) : string
TrackStatistics ( string type, string operation, string method ) : void

Method Details

Dispose() public méthode

Disposing TaskSchedulerOnUnobservedTaskException instance. This class doesn't have the finalize method as we expect it live for a duration of the process and be disposed by AI infrastructure.
public Dispose ( ) : void
Résultat void

FirstChanceExceptionStatisticsTelemetryModule() public méthode

Initializes a new instance of the FirstChanceExceptionStatisticsTelemetryModule class.
public FirstChanceExceptionStatisticsTelemetryModule ( ) : System
Résultat System

Initialize() public méthode

Initializes the telemetry module.
public Initialize ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : void
configuration Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration Telemetry Configuration used for creating TelemetryClient for sending exception statistics to Application Insights.
Résultat void