Microsoft.Identity.Client.Extensibility.AbstractManagedIdentityAcquireTokenParameterBuilderExtension
Extension methods for managed identity acquire-token requests
( AbstractManagedIdentityAcquireTokenParameterBuilder<T>).
public static AbstractManagedIdentityAcquireTokenParameterBuilder<T> WithOtelTagsEnricher<T>(this AbstractManagedIdentityAcquireTokenParameterBuilder<T> builder, Action<ExecutionResult, IList<KeyValuePair<string, object>>> tagsEnricher) where T : AbstractManagedIdentityAcquireTokenParameterBuilder<T>
Registers a delegate that adds additional tags (dimensions) to the OpenTelemetry metrics MSAL emits
for this managed identity token acquisition. The delegate is invoked while MSAL records its metrics and
receives the ExecutionResult of the acquisition (indicating success or failure, with the
result or exception) together with a mutable list of tags. Tags appended to that list are attached to
every metric recorded for the request, including metrics emitted during proactive background refresh.