TelemetryConfiguration Class

Definition

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

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

Remarks

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

Constructors

TelemetryConfiguration()

Properties

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.

ContextInitializers

Gets the list of IContextInitializer objects that supply additional information about application.

DisableTelemetry

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

InstrumentationKey

Gets or sets the default instrumentation key for the application.

TelemetryChannel

Gets or sets the telemetry channel.

TelemetryInitializers

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

TelemetryModules

Gets the list of modules that automatically generate application telemetry.

Methods

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.

Dispose()

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

Applies to