<PackageReference Include="Microsoft.IdentityModel.Abstractions" Version="8.17.0" />

Microsoft.IdentityModel.Abstractions.ITelemetryClient

public interface ITelemetryClient
Interface for Telemetry tracking.
string ClientId { get; set; }

Gets or sets the application or client ID that telemetry is being sent for.

void Initialize()

Perform any necessary bootstrapping for the telemetry client.

bool IsEnabled()

Checks to see if telemetry is enabled all up.

bool IsEnabled(string eventName)

Checks to see if telemetry is enabled for the named event.

void TrackEvent(TelemetryEventDetails eventDetails)

Tracks an instance of a named event.

void TrackEvent(string eventName, IDictionary<string, string> stringProperties = null, IDictionary<string, long> longProperties = null, IDictionary<string, bool> boolProperties = null, IDictionary<string, DateTime> dateTimeProperties = null, IDictionary<string, double> doubleProperties = null, IDictionary<string, Guid> guidProperties = null)

Tracks an instance of a named event.