Skip to content

[Evaluation] Make App Insights export best effort for managed identity - #48805

Merged
Mohamed Hessien (m7md7sien) merged 3 commits into
Azure:mainfrom
m7md7sien:fix/evaluation-app-insights-export-best-effort
Sep 1, 2026
Merged

[Evaluation] Make App Insights export best effort for managed identity#48805
Mohamed Hessien (m7md7sien) merged 3 commits into
Azure:mainfrom
m7md7sien:fix/evaluation-app-insights-export-best-effort

Conversation

@m7md7sien

@m7md7sien Mohamed Hessien (m7md7sien) commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Description

Application Insights export is a telemetry side effect and should not determine whether an evaluation succeeds. This change makes the ProjectManagedIdentity path best-effort, consistent with the existing API-key path.

  • Logs exporter construction and authentication failures instead of rethrowing them.
  • Logs asynchronous batch-export failures without reporting a false success.
  • Logs force-flush timeouts instead of failing the evaluation.
  • Preserves strict credential-type, required credential, and Azure Monitor scope validation.
  • Adds regression coverage for successful export, exporter setup failure, asynchronous export failure, flush timeout, API-key compatibility, and provider shutdown.

Internal tracking: Microsoft ADO Bug 5571803.

All SDK Contribution checklist:

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which has an informative message.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

This pull request was prepared with assistance from GitHub Copilot for VS Code.

@github-actions github-actions Bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Aug 31, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@m7md7sien
Mohamed Hessien (m7md7sien) force-pushed the fix/evaluation-app-insights-export-best-effort branch from 6b0d837 to 510a61c Compare August 31, 2026 01:24
Keep managed-identity evaluation results when Application Insights export fails or times out, while preserving strict credential validation and failure logs.

Authored-by: GitHub Copilot for VS Code

Model: GitHub Copilot (copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes managed-identity Application Insights telemetry export best-effort so export failures do not fail evaluations.

Changes:

  • Logs exporter, asynchronous export, and flush failures.
  • Avoids false success logs while preserving strict configuration validation.
  • Adds regression tests and release notes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
_evaluate.py Handles telemetry export failures without propagation.
test_evaluate.py Covers success, failure, timeout, and shutdown behavior.
CHANGELOG.md Documents the best-effort export fix.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@RabsB
Rabah B (RabsB) marked this pull request as ready for review August 31, 2026 01:42
@RabsB
Rabah B (RabsB) requested a review from a team as a code owner August 31, 2026 01:42
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI review requested due to automatic review settings August 31, 2026 19:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

…elog entry

Verify ChangeLogEntries failed: _version.py still read 1.18.4, so the validator
picked up the 1.18.4 entry and rejected its 2026-08-27 date for no longer being
the latest in the file, now that a 1.18.5 (Unreleased) section sits above it.

_version.py represents the upcoming version and has to match the Unreleased
heading. This is the repository convention: of the packages currently carrying an
(Unreleased) top entry, 71 have a matching _version.py and 2 do not.

Authored-by: GitHub Copilot for VS Code
Model: Claude Opus 5 (claude-opus-5)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 31, 2026 19:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@m7md7sien
Mohamed Hessien (m7md7sien) merged commit 4fac869 into Azure:main Sep 1, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Evaluation Issues related to the client library for Azure AI Evaluation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants