Skip to content

Forward OpenTelemetry tags enricher onto the inner FIC client-assertion leg (AB#3696484) - #3968

Merged
neha-bhargava merged 5 commits into
masterfrom
nebharg/fic-otel-enricher
Jul 27, 2026
Merged

Forward OpenTelemetry tags enricher onto the inner FIC client-assertion leg (AB#3696484)#3968
neha-bhargava merged 5 commits into
masterfrom
nebharg/fic-otel-enricher

Conversation

@neha-bhargava

Copy link
Copy Markdown
Contributor

What

Forwards the outer app-token request's MSAL OpenTelemetry tags enricher onto the inner FIC client-assertion leg, so that leg's metrics carry the same enrichment tags as the outer acquisition.

Why

SEAL telemetry bug AB#3696484: the inner FIC credential-exchange metrics were missing the enrichment tags applied to the outer request.

How

  • OidcIdpSignedAssertionProvider reads AssertionRequestOptions.OtelTagsEnricher (surfaced by MSAL) and forwards it onto the inner AcquireTokenOptions.ExtraParameters[Constants.OtelTagsEnricherKey].
  • TokenAcquisition (app-token path) reads that key and applies it via builder.WithOtelTagsEnricher(...).
  • New provider unit tests.

Blocked on (draft)

Depends on the MSAL change that surfaces AssertionRequestOptions.OtelTagsEnricher. CI will not build until the MSAL pin is bumped to the release containing it. Kept as a draft until then.

Related

neha-bhargava and others added 2 commits July 24, 2026 16:10
…sertion leg

Fixes the FIC OTel enrichment gap (AB#3696484): an enricher configured on the
outer app-token request (via WithOtelTagsEnricher) was not applied to the inner
FIC client-assertion token request, so that leg's metrics lacked the enrichment
tags. OidcIdpSignedAssertionProvider now forwards the enricher (surfaced by MSAL
on AssertionRequestOptions.OtelTagsEnricher) onto the inner AcquireTokenOptions
via an ExtraParameters SDK-to-SDK channel that TokenAcquisition reads to call
WithOtelTagsEnricher on the inner acquisition.

Depends on the MSAL change that surfaces the enricher on AssertionRequestOptions
(blocked draft until that MSAL version releases).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d296b5aa-33db-4934-a697-cdf1c1999e09
…requests

Extend the FIC OTel enricher wiring to both managed identity acquisition sites so their
metrics (including proactive background refresh) carry the same enrichment tags:
- TokenAcquisition MI path: honor the ExtraParameters[OtelTagsEnricherKey] SDK-to-SDK channel.
- ManagedIdentityClientAssertion (MI-as-FIC leg): forward assertionRequestOptions.OtelTagsEnricher,
  mirroring the OIDC IdP assertion leg.

Depends on MSAL exposing WithOtelTagsEnricher for AbstractManagedIdentityAcquireTokenParameterBuilder<T>.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d296b5aa-33db-4934-a697-cdf1c1999e09
@neha-bhargava
neha-bhargava force-pushed the nebharg/fic-otel-enricher branch from dd57193 to e6c3cd2 Compare July 24, 2026 23:12
@neha-bhargava
neha-bhargava marked this pull request as ready for review July 25, 2026 00:08
@neha-bhargava
neha-bhargava requested a review from a team as a code owner July 25, 2026 00:08
@neha-bhargava
neha-bhargava merged commit da9e825 into master Jul 27, 2026
9 checks passed
@neha-bhargava
neha-bhargava deleted the nebharg/fic-otel-enricher branch July 27, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants