<PackageReference Include="Microsoft.Identity.Client" Version="4.84.1-preview" />

Microsoft.Identity.Client.TelemetryCore.OpenTelemetry.IOtelInstrumentation

namespace Microsoft.Identity.Client.TelemetryCore.OpenTelemetry { internal interface IOtelInstrumentation { void LogSuccessMetrics(string platform, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, CacheLevel cacheLevel, long totalDurationInUs, AuthenticationResultMetadata authResultMetadata, ILoggerAdapter logger, DateTimeOffset expiresOn); void IncrementSuccessCounter(string platform, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, TokenSource tokenSource, CacheRefreshReason cacheRefreshReason, CacheLevel cacheLevel, ILoggerAdapter logger, int TokenType); void LogFailureMetrics(string platform, string errorCode, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, CacheRefreshReason cacheRefreshReason, int tokenType, string rawStsErrorCode = null); void LogRemainingTokenLifetime(string platform, ApiEvent.ApiIds apiId, TokenSource tokenSource, CacheLevel cacheLevel, CacheRefreshReason cacheRefreshReason, int tokenType, DateTimeOffset expiresOn); } }