<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2" />

Microsoft.Identity.Client.Platforms.Features.OpenTelemetry.OtelInstrumentation

Class to hold the OpenTelemetry objects used by MSAL.
public const string MeterName = "MicrosoftIdentityClient_Common_Meter"

Constant to hold the name of the Meter.

public void IncrementFailureCounter(string platform, string errorCode, ApiIds apiId, string callerSdkId, string callerSdkVersion, CacheRefreshReason cacheRefreshReason, int tokenType, string rawStsErrorCode = null)

public void IncrementSuccessCounter(string platform, ApiIds apiId, string callerSdkId, string callerSdkVersion, TokenSource tokenSource, CacheRefreshReason cacheRefreshReason, CacheLevel cacheLevel, ILoggerAdapter logger, int tokenType)

public void LogFailureHttpDuration(string platform, ApiEvent apiEvent, int httpStatusCode)

public void LogFailureMetrics(string platform, string errorCode, ApiEvent apiEvent, string callerSdkId, string callerSdkVersion, CacheRefreshReason cacheRefreshReason, int tokenType, int httpStatusCode, long totalDurationInMs, string rawStsErrorCode = null)

public void LogRemainingTokenLifetime(string platform, ApiIds apiId, TokenSource tokenSource, CacheLevel cacheLevel, CacheRefreshReason cacheRefreshReason, int tokenType, DateTimeOffset expiresOn)

public void LogSuccessHttpDuration(string platform, ApiIds apiId, AuthenticationResultMetadata authResultMetadata)

public void LogSuccessMetrics(string platform, ApiIds apiId, string callerSdkId, string callerSdkVersion, CacheLevel cacheLevel, long totalDurationInUs, AuthenticationResultMetadata authResultMetadata, ILoggerAdapter logger, DateTimeOffset expiresOn)