<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Extensibility.TelemetrySink

public sealed class TelemetrySink : IDisposable, ITelemetryModule
Represents a destination for telemetry, consisting of a set of telemetry processors and a channel.
public static readonly string DefaultSinkName

The name to use for the default telemetry sink when specifying its properties through configuration.

public string Name { get; set; }

Gets or sets the name of the sink.

public ITelemetryChannel TelemetryChannel { get; set; }

Gets or sets the telemetry channel.

Gets or sets an instance of the TelemetryProcessorChainBuilder that this sink is using.

Gets a readonly collection of TelemetryProcessors.

public TelemetrySink(TelemetryConfiguration telemetryConfiguration, ITelemetryChannel telemetryChannel = null)

Initializes a new instance of the TelemetrySink class.

public TelemetrySink()

Initializes a new instance of the TelemetrySink class.

public void Dispose()

Releases resources used by the instance of TelemetrySink class.

public void Initialize(TelemetryConfiguration configuration)

Initializes the sink.

public void Process(ITelemetry item)

Processes a collected telemetry item.