Skip to content

Fix fallback where OpenTelemetry instrumentation is not available#5710

Closed
fowl2 wants to merge 1 commit intoAzureAD:mainfrom
fowl2:patch-1
Closed

Fix fallback where OpenTelemetry instrumentation is not available#5710
fowl2 wants to merge 1 commit intoAzureAD:mainfrom
fowl2:patch-1

Conversation

@fowl2
Copy link
Copy Markdown
Contributor

@fowl2 fowl2 commented Feb 4, 2026

When initializing OTel, additionally catch TypeLoadException and TypeInitializationException which wrap existing catch of FileNotFoundException when only older version of System.Diagnostics.DiagnosticSource is loaded, such as on some Azure Functions versions.

Follow up to #4487

edit: I can see this was actually already considered but it was decided to only include if the other exceptions were observed. I'm observing TypeLoadException.

@fowl2 fowl2 requested a review from a team as a code owner February 4, 2026 01:05
@bgavrilMS
Copy link
Copy Markdown
Member

Thanks for the contribution @fowl2

Copilot AI added a commit that referenced this pull request Feb 5, 2026
…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>
neha-bhargava added a commit that referenced this pull request Feb 6, 2026
…mpatibility (#5720)

* Initial plan

* Fix fallback where OpenTelemetry instrumentation is not available

Follow up to #4487

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: James May <fowl2@users.noreply.github.com>
Co-authored-by: Neha Bhargava <61847233+neha-bhargava@users.noreply.github.com>
@neha-bhargava
Copy link
Copy Markdown
Contributor

Merged. Thanks @fowl2

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.

3 participants