Skip to content

[Infra] Docs and tests updates for .NET 10#3868

Merged
martincostello merged 2 commits intoopen-telemetry:mainfrom
martincostello:dotnet-11-prep
Feb 16, 2026
Merged

[Infra] Docs and tests updates for .NET 10#3868
martincostello merged 2 commits intoopen-telemetry:mainfrom
martincostello:dotnet-11-prep

Conversation

@martincostello
Copy link
Copy Markdown
Member

Changes

Cherry-pick changes from #3867:

  • Update documentation references to .NET 10.
  • Fix xunit analyzer warnings for untyped data.
  • "De-code" some documentation references to .NET versions.
  • Remove version numbers from some unit test names.

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 changes from open-telemetry#3867:

- Update documentation references to .NET 10.
- Fix xunit analyzer warnings for untyped data.
- "De-code" some documentation references to .NET versions.
- Remove version numbers from some unit test names.
@github-actions github-actions bot added infra Infra work - CI/CD, code coverage, linters comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore documentation Improvements or additions to documentation comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http perf Performance related comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva comp:extensions.enrichment.aspnetcore Things related to OpenTelemetry.Extensions.Enrichment.AspNetCore labels Feb 16, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.43%. Comparing base (692778a) to head (3417d7e).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3868      +/-   ##
==========================================
- Coverage   71.56%   71.43%   -0.14%     
==========================================
  Files         447      457      +10     
  Lines       17828    17879      +51     
==========================================
+ Hits        12759    12772      +13     
- Misses       5069     5107      +38     
Flag Coverage Δ
unittests-Contrib.Shared.Tests 87.87% <ø> (ø)
unittests-Exporter.Geneva 54.57% <ø> (+0.11%) ⬆️
unittests-Exporter.InfluxDB 95.14% <ø> (ø)
unittests-Exporter.Instana 74.86% <ø> (ø)
unittests-Exporter.OneCollector 94.62% <ø> (ø)
unittests-Extensions 90.65% <ø> (ø)
unittests-Extensions.Enrichment 100.00% <ø> (ø)
unittests-Extensions.Enrichment.AspNetCore 86.27% <ø> (ø)
unittests-Extensions.Enrichment.Http 94.33% <ø> (ø)
unittests-Instrumentation.AWS 83.42% <ø> (ø)
unittests-Instrumentation.AspNet 77.20% <ø> (ø)
unittests-Instrumentation.AspNetCore 69.23% <ø> (ø)
unittests-Instrumentation.Cassandra 23.52% <ø> (?)
unittests-Instrumentation.ConfluentKafka 14.10% <ø> (ø)
unittests-Instrumentation.ElasticsearchClient 80.60% <ø> (ø)
unittests-Instrumentation.EntityFrameworkCore 80.80% <ø> (ø)
unittests-Instrumentation.EventCounters 77.27% <ø> (ø)
unittests-Instrumentation.GrpcCore 91.42% <ø> (ø)
unittests-Instrumentation.GrpcNetClient 73.78% <ø> (ø)
unittests-Instrumentation.Hangfire 86.05% <ø> (ø)
unittests-Instrumentation.Http 72.78% <ø> (ø)
unittests-Instrumentation.Owin 88.62% <ø> (ø)
unittests-Instrumentation.Process 100.00% <ø> (ø)
unittests-Instrumentation.Quartz 78.76% <ø> (ø)
unittests-Instrumentation.Runtime 100.00% <ø> (ø)
unittests-Instrumentation.ServiceFabricRemoting 34.54% <ø> (ø)
unittests-Instrumentation.SqlClient 85.54% <ø> (ø)
unittests-Instrumentation.StackExchangeRedis 71.80% <ø> (ø)
unittests-Instrumentation.Wcf 79.57% <ø> (ø)
unittests-OpAmp.Client 79.25% <ø> (ø)
unittests-PersistentStorage 67.55% <ø> (-1.68%) ⬇️
unittests-Resources.AWS 74.50% <ø> (ø)
unittests-Resources.Azure 85.31% <ø> (ø)
unittests-Resources.Container 67.34% <ø> (ø)
unittests-Resources.Gcp 71.42% <ø> (ø)
unittests-Resources.Host 72.26% <ø> (ø)
unittests-Resources.OperatingSystem 76.98% <ø> (ø)
unittests-Resources.Process 100.00% <ø> (ø)
unittests-Resources.ProcessRuntime 79.59% <ø> (ø)
unittests-Sampler.AWS 94.30% <ø> (ø)

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

Files with missing lines Coverage Δ
...tp/Implementation/HttpHandlerDiagnosticListener.cs 73.17% <ø> (ø)

... and 14 files with indirect coverage changes

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

@martincostello martincostello marked this pull request as ready for review February 16, 2026 11:14
@martincostello martincostello requested a review from a team as a code owner February 16, 2026 11:14
Copilot AI review requested due to automatic review settings February 16, 2026 11:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR cherry-picks changes from PR #3867 to update documentation and tests for .NET 10. The primary focus is modernizing version references, fixing xunit analyzer warnings, and removing version-specific identifiers from test names.

Changes:

  • Updates documentation to use natural language version references (e.g., ".NET 8" instead of .NET8.0)
  • Fixes xunit analyzer warnings by converting test data from IEnumerable<object[]> to strongly-typed TheoryData<T>
  • Removes version numbers from unit test method names and test case constraints

Reviewed changes

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

Show a summary per file
File Description
test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestTests.cs Updates comment from "NET9" to "NET 9+"
test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.cs Renames test method from ValidateNet8MetricsAsync to ValidateNetMetricsAsync and updates comment
test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs Updates comment from "NET9" to "NET 9+"
test/OpenTelemetry.Instrumentation.Http.Benchmarks/README.md Updates benchmark command example from net8.0 to net10.0
test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTests.cs Refactors to use primary constructor, converts MemberData to use TheoryData pattern, removes this. prefixes
test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.json Removes minimumDotnetVersion: 7 from MapGroup test cases
test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.cs Converts return type from IEnumerable<object[]> to TheoryData<TestCase> for xunit compatibility
test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs Renames test methods to remove version numbers
test/OpenTelemetry.Instrumentation.AspNetCore.Benchmarks/README.md Updates benchmark command example from net8.0 to net10.0
test/OpenTelemetry.Extensions.Enrichment.AspNetCore.Tests/OpenTelemetry.Extensions.Enrichment.AspNetCore.Tests.csproj Simplifies comment from "net8+, net9+" to ".NET 8+"
test/OpenTelemetry.Exporter.Geneva.Tests/UnixUserEventsDataTransportTests.cs Updates command example from net8.0 to net10.0
test/OpenTelemetry.Exporter.Geneva.Tests/Testing.md Updates command example from net8.0 to net10.0
test/OpenTelemetry.Exporter.Geneva.Tests/LogSerializationTests.cs Updates command example from net8.0 to net10.0
test/OpenTelemetry.Exporter.Geneva.Benchmarks/README.md Updates benchmark command example from net8.0 to net10.0
src/Shared/Lock.cs Updates comments from ".NET9" to ".NET 9"
src/OpenTelemetry.Instrumentation.Http/README.md Converts version references from .NET8.0 to natural language ".NET 8"
src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs Updates comment from "net8.0" to ".NET 8+" and removes version from URL
src/OpenTelemetry.Instrumentation.AspNetCore/README.md Inconsistent updates: mixes ".NET 8" with ".NET 10" references incorrectly
.github/ISSUE_TEMPLATE/bug_report.yml Updates example from net8.0 to net10.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Update over-zealous version changes.
@martincostello martincostello added this pull request to the merge queue Feb 16, 2026
Merged via the queue into open-telemetry:main with commit 40ed846 Feb 16, 2026
320 of 321 checks passed
@martincostello martincostello deleted the dotnet-11-prep branch February 16, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva comp:extensions.enrichment.aspnetcore Things related to OpenTelemetry.Extensions.Enrichment.AspNetCore comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http documentation Improvements or additions to documentation infra Infra work - CI/CD, code coverage, linters perf Performance related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants