Repository navigation
Enable AOT compatibility validation for Azure Monitor OpenTelemetry Exporter - #62850
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The suppression hides unsafe reflection over unpreserved nested property types.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Enables Native AOT validation for the Azure Monitor OpenTelemetry Exporter.
Changes:
- Removes the AOT compatibility opt-out.
- Suppresses an existing trimming warning in Live Metrics filtering.
- Documents the validation change.
File summaries
| File | Description |
|---|---|
Filter.cs |
Adds the IL2072 suppression. |
Azure.Monitor.OpenTelemetry.Exporter.csproj |
Enables repository AOT checks. |
CHANGELOG.md |
Records AOT validation support. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Rajkumar Rangaraj (rajkumar-rangaraj)
approved these changes
Sep 9, 2026
xiang17
enabled auto-merge (squash)
September 11, 2026 23:14
Harsimar Kaur (harsimar)
approved these changes
Sep 11, 2026
This was referenced Oct 1, 2026
Open
Merged
This was referenced Oct 8, 2026
This was referenced Oct 8, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AotCompatOptOutfrom Azure Monitor OpenTelemetry Exporter.IL2072for the existing Live Metrics property traversal, where public properties on the knownDocumentIngressmodel hierarchy are explicitly preserved.Previously, the CI compatibility script detected the opt-out and returned success without analyzing or publishing the exporter.
Testing
Check-AOT-Compatibility.ps1for the exporter with no IL warnings.win-x64.AotCompatOptOut=falseAotAnalyzersOptOut=falseIsAotCompatible=true