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

[Infra] Support .NET 11 - #3867

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

martincostello wants to merge 171 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.

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 any 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

❌ Patch coverage is 75.86207% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.36%. Comparing base (7985b42) to head (28d6c16).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rter.Geneva/Internal/Tld/UncheckedASCIIEncoding.cs 0.00% 9 Missing ⚠️
src/OpenTelemetry.Resources.Host/HostDetector.cs 40.00% 2 Missing and 1 partial ⚠️
...tation.AspNetCore/Implementation/HttpInListener.cs 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3867      +/-   ##
==========================================
- Coverage   76.74%   76.36%   -0.38%     
==========================================
  Files         508      508              
  Lines       21750    21779      +29     
  Branches     3431     3434       +3     
==========================================
- Hits        16692    16632      -60     
- Misses       4334     4421      +87     
- Partials      724      726       +2     
Flag Coverage Δ
unittests-DynamicControl 97.73% <100.00%> (-0.22%) ⬇️
unittests-Exporter.Geneva 53.85% <35.71%> (-0.48%) ⬇️
unittests-Exporter.InfluxDB 89.43% <ø> (ø)
unittests-Exporter.OneCollector 93.74% <100.00%> (ø)
unittests-Extensions 93.70% <ø> (-0.50%) ⬇️
unittests-Extensions.Enrichment 97.97% <ø> (ø)
unittests-Extensions.Enrichment.AspNetCore 86.27% <ø> (ø)
unittests-Extensions.Enrichment.Http 94.33% <ø> (ø)
unittests-Instrumentation.AWS 83.56% <100.00%> (+0.07%) ⬆️
unittests-Instrumentation.AspNet 75.33% <ø> (ø)
unittests-Instrumentation.AspNetCore 81.90% <33.33%> (+0.29%) ⬆️
unittests-Instrumentation.Cassandra 92.30% <ø> (ø)
unittests-Instrumentation.ConfluentKafka 80.13% <ø> (ø)
unittests-Instrumentation.EntityFrameworkCore 75.87% <ø> (ø)
unittests-Instrumentation.EventCounters 71.92% <ø> (ø)
unittests-Instrumentation.GrpcCore 85.74% <ø> (ø)
unittests-Instrumentation.GrpcNetClient 75.60% <ø> (ø)
unittests-Instrumentation.Hangfire 86.56% <ø> (ø)
unittests-Instrumentation.Http 71.17% <100.00%> (-2.57%) ⬇️
unittests-Instrumentation.Kusto 88.69% <ø> (-0.76%) ⬇️
unittests-Instrumentation.Owin 87.34% <ø> (ø)
unittests-Instrumentation.Process 98.52% <ø> (ø)
unittests-Instrumentation.Quartz 73.14% <ø> (ø)
unittests-Instrumentation.Remoting 63.76% <ø> (ø)
unittests-Instrumentation.Runtime 78.61% <ø> (-16.99%) ⬇️
unittests-Instrumentation.ServiceFabricRemoting 34.50% <ø> (ø)
unittests-Instrumentation.SqlClient 83.27% <100.00%> (+0.29%) ⬆️
unittests-Instrumentation.StackExchangeRedis 92.42% <ø> (ø)
unittests-Instrumentation.Wcf 77.04% <ø> (ø)
unittests-OpAmp.Client 88.13% <100.00%> (ø)
unittests-PersistentStorage 65.89% <100.00%> (+0.50%) ⬆️
unittests-PowerShellScripts 86.27% <ø> (ø)
unittests-Resources.AWS 68.58% <100.00%> (+0.10%) ⬆️
unittests-Resources.Azure 85.32% <ø> (ø)
unittests-Resources.Container 82.81% <100.00%> (+0.84%) ⬆️
unittests-Resources.Gcp 87.50% <100.00%> (+0.11%) ⬆️
unittests-Resources.Host 70.82% <40.00%> (-1.02%) ⬇️
unittests-Resources.OperatingSystem 66.14% <ø> (ø)
unittests-Resources.Process 100.00% <ø> (ø)
unittests-Resources.ProcessRuntime 75.00% <ø> (ø)
unittests-Sampler.AWS 92.11% <100.00%> (-0.35%) ⬇️

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

Files with missing lines Coverage Δ
...rol/Internal/Providers/JsonKeyValuePolicyParser.cs 100.00% <100.00%> (ø)
...icControl/Internal/Store/PolicyProviderSnapshot.cs 100.00% <100.00%> (ø)
...xporter.Geneva/Internal/ConnectionStringBuilder.cs 94.94% <100.00%> (+0.05%) ⬆️
...rter.Geneva/Internal/MsgPack/MsgPackLogExporter.cs 87.54% <100.00%> (ø)
...metry.Exporter.Geneva/Internal/Tld/TldLogCommon.cs 60.15% <100.00%> (+0.30%) ⬆️
...er.OneCollector/Internal/ConnectionStringParser.cs 100.00% <100.00%> (ø)
...Exporter.OneCollector/Internal/EventNameManager.cs 100.00% <100.00%> (ø)
...erialization/CommonSchemaJsonSerializationState.cs 96.59% <100.00%> (ø)
...y.Extensions/Trace/ConsistentProbabilitySampler.cs 100.00% <ø> (ø)
...on.AWS/Implementation/AWSTracingPipelineHandler.cs 91.36% <100.00%> (+0.06%) ⬆️
... and 20 more

... and 8 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.
Apply speculative changes in advance of ASP.NET Core 11 rc.2.
Enable deterministic NuGet packages.
Enable checking for vulnerable .NET SDK version.
- Simplify lambda expression.
- Specify `StringComparison`.
@martincostello martincostello mentioned this pull request Sep 12, 2026
2 of 4 tasks
@martincostello martincostello mentioned this pull request Sep 23, 2026
2 of 4 tasks
@martincostello martincostello mentioned this pull request Sep 23, 2026
2 of 4 tasks

This branch had an error being deployed

1 failed (outdated) deployment
external — 32211da5 Deployed May 22, 2026 by martincostello via Authorize external PR #1883
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:dynamiccontrol Things related to OpenTelemetry.DynamicControl 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:extensions Things related to OpenTelemetry.Extensions 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.entityframeworkcore Things related to OpenTelemetry.Instrumentation.EntityFrameworkCore comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:instrumentation.runtime Things related to OpenTelemetry.Instrumentation.Runtime comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient 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:resources.gcp Things related to OpenTelemetry.Resources.Gcp comp:resources.host Things related to OpenTelemetry.Resources.Host 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

2 participants