Skip to content

Support .NET 11#3867

Draft
martincostello wants to merge 33 commits intoopen-telemetry:mainfrom
martincostello:dotnet-vnext
Draft

Support .NET 11#3867
martincostello wants to merge 33 commits intoopen-telemetry:mainfrom
martincostello:dotnet-vnext

Conversation

@martincostello
Copy link
Copy Markdown
Member

@martincostello martincostello commented Feb 14, 2026

The intention is to keep this PR updated over the course of .NET 11's development as new previews are released.

Fixes #1730.

Changes

Add support for building and testing with .NET 11.

  • Build with .NET 11 SDK
  • Add net11.0 target
  • Drop net8.0 and net9.0 targets

TODO

  • Use stable (or RC) SDK, container and NuGet package versions
  • Re-enable disabled tests
  • Remove any hacks or TODOs

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)

@martincostello martincostello added the keep-open Prevents issues and pull requests being closed as stale label Feb 14, 2026
@github-actions github-actions bot added infra Infra work - CI/CD, code coverage, linters dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva comp:exporter.onecollector Things related to OpenTelemetry.Exporter.OneCollector comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:opamp.client Things related to OpenTelemetry.OpAmp.Client comp:sampler.aws Things related to OpenTelemetry.Samplers.AWS perf Performance related comp:extensions.enrichment.aspnetcore Things related to OpenTelemetry.Extensions.Enrichment.AspNetCore comp:instrumentation.cassandra Things related to OpenTelemetry.Instrumentation.Cassandra comp:instrumentation.confluentkafka Things related to OpenTelemetry.Instrumentation.ConfluentKafka comp:instrumentation.runtime Things related to OpenTelemetry.Instrumentation.Runtime comp:instrumentation.stackexchangeredis Things related to OpenTelemetry.Instrumentation.StackExchangeRedis comp:instrumentation.wcf Things related to OpenTelemetry.Instrumentation.Wcf comp:resources.aws Things related to OpenTelemetry.Resources.AWS labels Feb 14, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.16%. Comparing base (f845665) to head (1b248e1).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3867      +/-   ##
==========================================
- Coverage   72.06%   71.16%   -0.90%     
==========================================
  Files         448      458      +10     
  Lines       17825    17887      +62     
==========================================
- Hits        12845    12729     -116     
- Misses       4980     5158     +178     
Flag Coverage Δ
unittests-Contrib.Shared.Tests 89.76% <ø> (ø)
unittests-Exporter.Geneva 54.71% <100.00%> (-0.38%) ⬇️
unittests-Exporter.InfluxDB 95.81% <ø> (ø)
unittests-Exporter.Instana 74.86% <ø> (ø)
unittests-Exporter.OneCollector 94.61% <ø> (ø)
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.60% <100.00%> (+0.06%) ⬆️
unittests-Instrumentation.AspNet 77.37% <ø> (ø)
unittests-Instrumentation.AspNetCore 70.44% <ø> (ø)
unittests-Instrumentation.Cassandra 23.52% <ø> (?)
unittests-Instrumentation.ConfluentKafka 14.59% <ø> (ø)
unittests-Instrumentation.ElasticsearchClient 80.83% <100.00%> (+0.23%) ⬆️
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.62% <ø> (-2.00%) ⬇️
unittests-Instrumentation.Owin 88.62% <ø> (ø)
unittests-Instrumentation.Process 100.00% <ø> (ø)
unittests-Instrumentation.Quartz 78.76% <ø> (ø)
unittests-Instrumentation.Runtime 29.65% <ø> (-70.35%) ⬇️
unittests-Instrumentation.ServiceFabricRemoting 34.68% <ø> (ø)
unittests-Instrumentation.SqlClient 85.74% <ø> (ø)
unittests-Instrumentation.StackExchangeRedis 71.98% <ø> (ø)
unittests-Instrumentation.Wcf 79.68% <ø> (ø)
unittests-OpAmp.Client 79.11% <ø> (ø)
unittests-PersistentStorage 68.19% <ø> (ø)
unittests-Resources.AWS 74.34% <ø> (ø)
unittests-Resources.Azure 85.31% <ø> (ø)
unittests-Resources.Container 69.23% <100.00%> (+1.88%) ⬆️
unittests-Resources.Gcp 71.42% <ø> (ø)
unittests-Resources.Host 71.53% <ø> (-0.73%) ⬇️
unittests-Resources.OperatingSystem 76.98% <ø> (ø)
unittests-Resources.Process 100.00% <ø> (ø)
unittests-Resources.ProcessRuntime 79.59% <ø> (ø)
unittests-Sampler.AWS 94.29% <100.00%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
...xporter.Geneva/Internal/ConnectionStringBuilder.cs 95.95% <100.00%> (+0.04%) ⬆️
...tion.AWSLambda/Implementation/AWSMessagingUtils.cs 75.92% <100.00%> (+1.92%) ⬆️
...nstrumentation.AspNetCore/HttpContextExtensions.cs 100.00% <ø> (ø)
.../ElasticsearchRequestPipelineDiagnosticListener.cs 84.49% <100.00%> (+0.24%) ⬆️
...mentation/RedisProfilerEntryToActivityConverter.cs 44.61% <ø> (ø)
...metry.OpAmp.Client/Settings/OpAmpClientSettings.cs 85.00% <ø> (ø)
...Telemetry.Resources.Container/ContainerDetector.cs 81.39% <100.00%> (+1.39%) ⬆️
...c/OpenTelemetry.Sampler.AWS/SamplingRuleApplier.cs 99.27% <100.00%> (+<0.01%) ⬆️

... and 15 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.

@github-actions github-actions bot added the comp:instrumentation.aws Things related to OpenTelemetry.Instrumentation.AWS label Feb 14, 2026
@github-actions github-actions bot added the comp:extensions.aws Things related to OpenTelemetry.Extensions.AWS label Feb 14, 2026
martincostello added a commit to martincostello/opentelemetry-dotnet-contrib that referenced this pull request Feb 16, 2026
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 removed comp:instrumentation.hangfire Things related to OpenTelemetry.Instrumentation.Hangfire comp:instrumentation.entityframeworkcore Things related to OpenTelemetry.Instrumentation.EntityFrameworkCore comp:instrumentation.elasticsearchclient Things related to OpenTelemetry.Instrumentation.ElasticsearchClient comp:extensions Things related to OpenTelemetry.Extensions comp:resources.container Things related to OpenTelemetry.Resources.Container comp:instrumentation.process Things related to OpenTelemetry.Instrumentation.Process comp:resources.azure Things related to OpenTelemetry.Resources.Azure labels Mar 17, 2026
Use a more-specific label so updates don't get missed for future previews.
- Fix `net10.0` being added twice via `NetMinimumSupportedVersion` and add a `net11.0` target.
- Fix new code analysis warnings by using overloads that accept a `StringComparison`.
Add link to issue in test comment.
@martincostello martincostello mentioned this pull request Mar 18, 2026
4 tasks
| :green_heart: | AttributeRouting | [Action with parameter before action name in template](#activity__attributerouting-action-with-parameter-before-action-name-in-template) |
| :green_heart: | AttributeRouting | [Action invoked resulting in 400 Bad Request](#activity__attributerouting-action-invoked-resulting-in-400-bad-request) |
| :green_heart: | RazorPages | [Root path](#activity__razorpages-root-path) |
| :broken_heart: | RazorPages | [Root path](#activity__razorpages-root-path) |
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Need to investigate why this has regressed.

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:exporter.onecollector Things related to OpenTelemetry.Exporter.OneCollector comp:extensions.aws Things related to OpenTelemetry.Extensions.AWS comp:extensions.enrichment.aspnetcore Things related to OpenTelemetry.Extensions.Enrichment.AspNetCore comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore comp:instrumentation.aws Things related to OpenTelemetry.Instrumentation.AWS comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda comp:instrumentation.cassandra Things related to OpenTelemetry.Instrumentation.Cassandra comp:instrumentation.confluentkafka Things related to OpenTelemetry.Instrumentation.ConfluentKafka comp:instrumentation.elasticsearchclient Things related to OpenTelemetry.Instrumentation.ElasticsearchClient comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:instrumentation.runtime Things related to OpenTelemetry.Instrumentation.Runtime comp:instrumentation.stackexchangeredis Things related to OpenTelemetry.Instrumentation.StackExchangeRedis comp:instrumentation.wcf Things related to OpenTelemetry.Instrumentation.Wcf comp:opamp.client Things related to OpenTelemetry.OpAmp.Client comp:resources.aws Things related to OpenTelemetry.Resources.AWS comp:resources.container Things related to OpenTelemetry.Resources.Container comp:sampler.aws Things related to OpenTelemetry.Samplers.AWS dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation infra Infra work - CI/CD, code coverage, linters keep-open Prevents issues and pull requests being closed as stale perf Performance related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AspNetCoreInstrumentation] Incorrect value for http.route when using conventional routing

1 participant