Skip to content

Support .NET 11#3867

Draft
martincostello wants to merge 70 commits into
open-telemetry:mainfrom
martincostello:dotnet-vnext
Draft

Support .NET 11#3867
martincostello wants to merge 70 commits into
open-telemetry:mainfrom
martincostello:dotnet-vnext

Conversation

@martincostello

@martincostello martincostello commented Feb 14, 2026

Copy link
Copy Markdown
Member

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

codecov Bot commented Feb 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.48%. Comparing base (435cf5f) to head (32e202d).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3867      +/-   ##
==========================================
- Coverage   75.76%   75.48%   -0.28%     
==========================================
  Files         438      438              
  Lines       18002    18035      +33     
==========================================
- Hits        13639    13614      -25     
- Misses       4363     4421      +58     
Flag Coverage Δ
unittests-Contrib.Shared.Tests 89.79% <ø> (ø)
unittests-Exporter.Geneva 54.61% <100.00%> (-0.11%) ⬇️
unittests-Exporter.InfluxDB 95.75% <ø> (ø)
unittests-Exporter.OneCollector 94.67% <ø> (ø)
unittests-Extensions 90.61% <ø> (ø)
unittests-Extensions.Enrichment 100.00% <ø> (ø)
unittests-Extensions.Enrichment.AspNetCore 86.27% <ø> (ø)
unittests-Extensions.Enrichment.Http 94.33% <ø> (ø)
unittests-Instrumentation.AWS 85.18% <100.00%> (+0.09%) ⬆️
unittests-Instrumentation.AspNet 77.50% <ø> (ø)
unittests-Instrumentation.AspNetCore 87.82% <100.00%> (+0.47%) ⬆️
unittests-Instrumentation.Cassandra 92.68% <ø> (ø)
unittests-Instrumentation.ConfluentKafka 82.04% <ø> (ø)
unittests-Instrumentation.ElasticsearchClient 80.60% <100.00%> (+0.23%) ⬆️
unittests-Instrumentation.EntityFrameworkCore 81.02% <ø> (ø)
unittests-Instrumentation.EventCounters 77.47% <ø> (ø)
unittests-Instrumentation.GrpcCore 91.18% <ø> (ø)
unittests-Instrumentation.GrpcNetClient 78.50% <ø> (ø)
unittests-Instrumentation.Hangfire 88.83% <ø> (ø)
unittests-Instrumentation.Http 72.29% <ø> (-2.52%) ⬇️
unittests-Instrumentation.Owin 88.88% <ø> (ø)
unittests-Instrumentation.Process 100.00% <ø> (ø)
unittests-Instrumentation.Quartz 78.37% <ø> (ø)
unittests-Instrumentation.Remoting 65.59% <ø> (ø)
unittests-Instrumentation.Runtime 80.24% <ø> (-19.76%) ⬇️
unittests-Instrumentation.ServiceFabricRemoting 39.91% <ø> (ø)
unittests-Instrumentation.SqlClient 82.90% <ø> (+0.21%) ⬆️
unittests-Instrumentation.StackExchangeRedis 94.02% <ø> (ø)
unittests-Instrumentation.Wcf 82.23% <ø> (ø)
unittests-OpAmp.Client 84.97% <ø> (-0.50%) ⬇️
unittests-PersistentStorage 69.65% <100.00%> (+1.91%) ⬆️
unittests-Resources.AWS 73.70% <100.00%> (+0.09%) ⬆️
unittests-Resources.Azure 87.67% <ø> (ø)
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 90.47% <ø> (ø)
unittests-Resources.ProcessRuntime 79.59% <ø> (ø)
unittests-Sampler.AWS 95.98% <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%) ⬆️
...erialization/CommonSchemaJsonSerializationState.cs 97.72% <ø> (ø)
...on.AWS/Implementation/AWSTracingPipelineHandler.cs 93.65% <100.00%> (+0.15%) ⬆️
...tion.AWSLambda/Implementation/AWSMessagingUtils.cs 75.47% <100.00%> (+2.00%) ⬆️
...nstrumentation.AspNetCore/HttpContextExtensions.cs 100.00% <ø> (ø)
...tation.AspNetCore/Implementation/HttpInListener.cs 87.95% <100.00%> (+0.87%) ⬆️
.../ElasticsearchRequestPipelineDiagnosticListener.cs 84.49% <100.00%> (+0.24%) ⬆️
...mentation/RedisProfilerEntryToActivityConverter.cs 93.00% <ø> (ø)
...metry.OpAmp.Client/Settings/OpAmpClientSettings.cs 90.90% <ø> (ø)
...Telemetry.PersistentStorage.FileSystem/FileBlob.cs 92.15% <100.00%> (+0.15%) ⬆️
... and 4 more

... and 10 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.
Comment thread examples/wcf/shared/Examples.Wcf.Shared.csproj Outdated
Update formatting to cater for `ActivityTraceFlags.RandomTraceId`.
Fix sampling behaviour to be compatible with .NET 11.
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.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:persistentstorage.filesystem Things related to OpenTelemetry.PersistentStorage.FileSystem 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

2 participants