C# Class Glimpse.ApplicationInsights.GlimpseTelemetryChannel

Telemetry channel that will send Application Insights telemetry to Glimpse message broker and to the Application Insights channel.
Inheritance: ITelemetryChannel, ITelemetryModule
Mostra file Open project: Glimpse/Glimpse.ApplicationInsights

Private Properties

Property Type Description
CalculateFromLast System.TimeSpan

Public Methods

Method Description
Dispose ( ) : void

Dispose the channel. Releases unmanaged and - optionally - managed resources.

Flush ( ) : void

Flushes the configured telemetry channel.

GlimpseTelemetryChannel ( ) : System

Initializes a new instance of the GlimpseTelemetryChannel class.

Initialize ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : void
Send ( ITelemetry item ) : void

Sends telemetry data item to the configured channel if the instrumentation key is not empty. Also publishes the telemetry item to the MessageBroker. Filters out the requests to Glimpse handler.

Private Methods

Method Description
CalculateFromLast ( IExecutionTimer timer ) : System.TimeSpan

Calculates the elapsed time from the current trace message and the preceding one.

Method Details

Dispose() public method

Dispose the channel. Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
return void

Flush() public method

Flushes the configured telemetry channel.
public Flush ( ) : void
return void

GlimpseTelemetryChannel() public method

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

Initialize() public method

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

Send() public method

Sends telemetry data item to the configured channel if the instrumentation key is not empty. Also publishes the telemetry item to the MessageBroker. Filters out the requests to Glimpse handler.
public Send ( ITelemetry item ) : void
item ITelemetry Item to send.
return void