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

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, IReadOnlyList<KeyValuePair<string, object>> extraTags = null); void IncrementSuccessCounter(string platform, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, TokenSource tokenSource, CacheRefreshReason cacheRefreshReason, CacheLevel cacheLevel, ILoggerAdapter logger, int TokenType, IReadOnlyList<KeyValuePair<string, object>> extraTags = null); void LogFailureMetrics(string platform, string errorCode, ApiEvent apiEvent, string callerSdkId, string callerSdkVersion, CacheRefreshReason cacheRefreshReason, int tokenType, int httpStatusCode, long totalDurationInMs, string rawStsErrorCode = null, ILoggerAdapter logger = null, IReadOnlyList<KeyValuePair<string, object>> extraTags = null); void IncrementFailureCounter(string platform, string errorCode, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, CacheRefreshReason cacheRefreshReason, int tokenType, string rawStsErrorCode = null, ILoggerAdapter logger = null, IReadOnlyList<KeyValuePair<string, object>> extraTags = null); void LogFailureHttpDuration(string platform, ApiEvent apiEvent, int httpStatusCode, ILoggerAdapter logger = null, IReadOnlyList<KeyValuePair<string, object>> extraTags = null); void LogRemainingTokenLifetime(string platform, ApiEvent.ApiIds apiId, TokenSource tokenSource, CacheLevel cacheLevel, CacheRefreshReason cacheRefreshReason, int tokenType, DateTimeOffset expiresOn, ILoggerAdapter logger = null, IReadOnlyList<KeyValuePair<string, object>> extraTags = null); void LogSuccessHttpDuration(string platform, ApiEvent.ApiIds apiId, AuthenticationResultMetadata authResultMetadata, ILoggerAdapter logger = null, IReadOnlyList<KeyValuePair<string, object>> extraTags = null); } }