<PackageReference Include="Microsoft.IdentityModel.Logging" Version="8.22.0" />

Microsoft.IdentityModel.Logging.IdentityModelTelemetryUtil

public static class IdentityModelTelemetryUtil
Provides a way to add and remove telemetry data.
public static string ClientSku { get; }

Get the string that represents the client SKU.

public static string ClientVer { get; }

Get the string that represents the client version.

public static bool AddTelemetryData(string key, string value)

Adds a key and its value to the collection of telemetry data.

public static bool RemoveTelemetryData(string key)

Removes a key and its value from the collection of telemetry data.