Table of Contents

Class TelemetryConfiguration

Namespace
Microsoft.ApplicationInsights.Extensibility
Assembly
Microsoft.ApplicationInsights.dll
public sealed class TelemetryConfiguration : IDisposable
Inheritance
TelemetryConfiguration
Implements
Inherited Members
Extension Methods

Constructors

TelemetryConfiguration(string)

[Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")]
public TelemetryConfiguration(string instrumentationKey)

Parameters

instrumentationKey string

TelemetryConfiguration(string, ITelemetryChannel)

[Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")]
public TelemetryConfiguration(string instrumentationKey, ITelemetryChannel channel)

Parameters

instrumentationKey string
channel ITelemetryChannel

Properties

Active

[Obsolete("We do not recommend using TelemetryConfiguration.Active on .NET Core. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/1152 for more details")]
public static TelemetryConfiguration Active { get; }

Property Value

TelemetryConfiguration

ApplicationIdProvider

public IApplicationIdProvider ApplicationIdProvider { get; set; }

Property Value

IApplicationIdProvider

ConnectionString

public string ConnectionString { get; set; }

Property Value

string

DefaultTelemetrySink

public TelemetrySink DefaultTelemetrySink { get; }

Property Value

TelemetrySink

DisableTelemetry

public bool DisableTelemetry { get; set; }

Property Value

bool

EndpointContainer

public EndpointContainer EndpointContainer { get; }

Property Value

EndpointContainer

InstrumentationKey

public string InstrumentationKey { get; set; }

Property Value

string

TelemetryChannel

public ITelemetryChannel TelemetryChannel { get; set; }

Property Value

ITelemetryChannel

TelemetryInitializers

public IList<ITelemetryInitializer> TelemetryInitializers { get; }

Property Value

IList<ITelemetryInitializer>

TelemetryProcessorChainBuilder

public TelemetryProcessorChainBuilder TelemetryProcessorChainBuilder { get; }

Property Value

TelemetryProcessorChainBuilder

TelemetryProcessors

public ReadOnlyCollection<ITelemetryProcessor> TelemetryProcessors { get; }

Property Value

ReadOnlyCollection<ITelemetryProcessor>

TelemetrySinks

public IList<TelemetrySink> TelemetrySinks { get; }

Property Value

IList<TelemetrySink>

Methods

CreateDefault()

public static TelemetryConfiguration CreateDefault()

Returns

TelemetryConfiguration

CreateFromConfiguration(string)

public static TelemetryConfiguration CreateFromConfiguration(string config)

Parameters

config string

Returns

TelemetryConfiguration

Dispose()

public void Dispose()

SetAzureTokenCredential(object)

public void SetAzureTokenCredential(object tokenCredential)

Parameters

tokenCredential object