C# Class Microsoft.ApplicationInsights.WindowsServer.FirstChanceExceptionStatisticsTelemetryModule

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

Public Methods

Method 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

Method 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 method

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
return void

FirstChanceExceptionStatisticsTelemetryModule() public method

Initializes a new instance of the FirstChanceExceptionStatisticsTelemetryModule class.
public FirstChanceExceptionStatisticsTelemetryModule ( ) : System
return System

Initialize() public method

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.
return void