TelemetryConfiguration TelemetryConfiguration TelemetryConfiguration Class

Definition

Encapsulates the global telemetry configuration typically loaded from the ApplicationInsights.config file.

public sealed class TelemetryConfiguration : IDisposable
type TelemetryConfiguration = class
    interface IDisposable
Public NotInheritable Class TelemetryConfiguration
Implements IDisposable
Inheritance
TelemetryConfigurationTelemetryConfigurationTelemetryConfiguration
Implements

Remarks

All TelemetryContext objects are initialized using the Active telemetry configuration provided by this class.

Constructors

TelemetryConfiguration(String) TelemetryConfiguration(String) TelemetryConfiguration(String)

Initializes a new instance of the TelemetryConfiguration class.

TelemetryConfiguration(String, ITelemetryChannel) TelemetryConfiguration(String, ITelemetryChannel) TelemetryConfiguration(String, ITelemetryChannel)

Initializes a new instance of the TelemetryConfiguration class.

Properties

Active Active Active

Gets the active TelemetryConfiguration instance loaded from the ApplicationInsights.config file. If the configuration file does not exist, the active configuration instance is initialized with minimum defaults needed to send telemetry to Application Insights.

ApplicationIdProvider ApplicationIdProvider ApplicationIdProvider

Gets or sets the Application Id Provider.

DefaultTelemetrySink DefaultTelemetrySink DefaultTelemetrySink

Gets the default telemetry sink.

DisableTelemetry DisableTelemetry DisableTelemetry

Gets or sets a value indicating whether sending of telemetry to Application Insights is disabled.

InstrumentationKey InstrumentationKey InstrumentationKey

Gets or sets the default instrumentation key for the application.

TelemetryChannel TelemetryChannel TelemetryChannel

Gets or sets the telemetry channel for the default sink.

TelemetryInitializers TelemetryInitializers TelemetryInitializers

Gets the list of ITelemetryInitializer objects that supply additional information about telemetry.

TelemetryProcessorChainBuilder TelemetryProcessorChainBuilder TelemetryProcessorChainBuilder

Gets the TelemetryProcessorChainBuilder which can build and populate TelemetryProcessors in the TelemetryConfiguration.

TelemetryProcessors TelemetryProcessors TelemetryProcessors

Gets a readonly collection of TelemetryProcessors.

TelemetrySinks TelemetrySinks TelemetrySinks

Gets a list of telemetry sinks associated with the configuration.

Methods

CreateDefault() CreateDefault() CreateDefault()

Creates a new TelemetryConfiguration instance loaded from the ApplicationInsights.config file. If the configuration file does not exist, the new configuration instance is initialized with minimum defaults needed to send telemetry to Application Insights.

CreateFromConfiguration(String) CreateFromConfiguration(String) CreateFromConfiguration(String)

Creates a new TelemetryConfiguration instance loaded from the specified configuration.

Dispose() Dispose() Dispose()

Releases resources used by the current instance of the TelemetryConfiguration class.

Extension Methods

GetMetricManager(TelemetryConfiguration) GetMetricManager(TelemetryConfiguration) GetMetricManager(TelemetryConfiguration)

@ToDo: Complete documentation before stable release. {923}

Applies to