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

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

Class to hold the OpenTelemetry objects used by MSAL.
namespace Microsoft.Identity.Client.Platforms.Features.OpenTelemetry { internal class OtelInstrumentation : IOtelInstrumentation { public const string MeterName = "MicrosoftIdentityClient_Common_Meter"; public OtelInstrumentation(); public void LogSuccessMetrics(string platform, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, CacheLevel cacheLevel, long totalDurationInUs, AuthenticationResultMetadata authResultMetadata, ILoggerAdapter logger, DateTimeOffset expiresOn); public void IncrementSuccessCounter(string platform, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, TokenSource tokenSource, CacheRefreshReason cacheRefreshReason, CacheLevel cacheLevel, ILoggerAdapter logger, int tokenType); public void LogSuccessHttpDuration(string platform, ApiEvent.ApiIds apiId, AuthenticationResultMetadata authResultMetadata); 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 IncrementFailureCounter(string platform, string errorCode, ApiEvent.ApiIds apiId, string callerSdkId, string callerSdkVersion, CacheRefreshReason cacheRefreshReason, int tokenType, string rawStsErrorCode = null); public void LogFailureHttpDuration(string platform, ApiEvent apiEvent, int httpStatusCode); public void LogRemainingTokenLifetime(string platform, ApiEvent.ApiIds apiId, TokenSource tokenSource, CacheLevel cacheLevel, CacheRefreshReason cacheRefreshReason, int tokenType, DateTimeOffset expiresOn); } }