Integration branch for PR #5710: Expand OTel fallback exception handling#5718
Closed
Integration branch for PR #5710: Expand OTel fallback exception handling#5718
Conversation
…dling This integrates the changes from external PR #5710 by @fowl2 which expands exception handling for OpenTelemetry initialization to catch TypeLoadException and TypeInitializationException in addition to FileNotFoundException. Reference: #5710 Co-authored-by: neha-bhargava <61847233+neha-bhargava@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create integration branch for CI testing of PR #5710
Integration branch for PR #5710: Expand OTel fallback exception handling
Feb 5, 2026
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.
Changes proposed in this request
Integration branch for external PR #5710 to enable CI testing. Expands exception handling when OpenTelemetry instrumentation fails to load.
Code changes:
AbstractPlatformProxy.cs: CatchTypeLoadExceptionandTypeInitializationExceptionin addition toFileNotFoundExceptionwhen instantiating OTel instrumentationwhenclause for cleaner exception filteringContext:
Observed in Azure Functions environments with older
System.Diagnostics.DiagnosticSourceversions. Original issue (#4456) identifiedFileNotFoundException, but contributor @fowl2 encounteredTypeLoadExceptionin production.Testing
No new tests added. Change expands existing fallback behavior to handle additional exception types in the same code path.
Performance impact
None. Exception handling only triggered when OTel dependencies unavailable (existing failure path).
Documentation
Reference: #5710
Credit: Original contribution by @fowl2
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.