Sitelet https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/5207
Skip to content

[Infra] .NET 11 preparation - #5207

Merged
martincostello merged 1 commit into
open-telemetry:mainfrom
martincostello:dotnet-11-prep
Sep 14, 2026
Merged

martincostello merged 1 commit into
open-telemetry:mainfrom
martincostello:dotnet-11-prep

Conversation

@martincostello

Copy link
Copy Markdown
Member

Changes

Cherry-pick fixes for new code analysis warnings from #3867.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

Cherry-pick fixes for new code analysis warnings from open-telemetry#3867.
@martincostello
martincostello marked this pull request as ready for review September 12, 2026 11:59
Copilot AI lite review requested due to automatic review settings September 12, 2026 11:59
@martincostello
martincostello requested a review from a team as a code owner September 12, 2026 11:59
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-09-14 13:40 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@github-actions github-actions Bot added comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:instrumentation.servicefabricremoting Things related to OpenTelemetry.Instrumentation.ServiceFabricRemoting comp:resources.azure Things related to OpenTelemetry.Resources.Azure labels Sep 12, 2026
@codecov

codecov Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.24%. Comparing base (c0cd898) to head (ce7efcc).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5207   +/-   ##
=======================================
  Coverage   79.24%   79.24%           
=======================================
  Files         500      500           
  Lines       21023    21023           
=======================================
  Hits        16659    16659           
  Misses       4364     4364           
Flag Coverage Δ
unittests-Instrumentation.AWS 86.71% <ø> (ø)
unittests-Instrumentation.Http 79.57% <ø> (ø)
unittests-Instrumentation.ServiceFabricRemoting 38.82% <ø> (ø)
unittests-Resources.Azure 87.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

🟢 Approval recommended

The reviewed changes address .NET 11 warnings without identified blocking issues.

Pull request overview

Prepares test code for .NET 11 analyzer and nullability changes without altering production behavior.

Changes:

  • Handles framework-specific event payload nullability.
  • Simplifies exception and lambda expressions.
  • Refactors HTTP metric filtering and assertions.
File summaries
File Description
test/OpenTelemetry.Resources.Azure.Tests/AzureResourceDetectorTests.cs Handles payload nullability across target frameworks.
test/OpenTelemetry.Instrumentation.ServiceFabricRemoting.Tests/ServiceFabricRemotingTests.cs Simplifies nullable exception syntax.
test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.cs Refactors metric filtering and expected counts.
test/OpenTelemetry.Instrumentation.AWSLambda.Tests/AWSLambdaWrapperTests.cs Simplifies lambda parameter declarations.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@martincostello
martincostello added this pull request to the merge queue Sep 14, 2026
Merged via the queue into open-telemetry:main with commit 9e9a08f Sep 14, 2026
96 checks passed
@martincostello
martincostello deleted the dotnet-11-prep branch September 14, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:instrumentation.servicefabricremoting Things related to OpenTelemetry.Instrumentation.ServiceFabricRemoting comp:resources.azure Things related to OpenTelemetry.Resources.Azure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants