Skip to content

[Infra] Support .NET 11 - #3867

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

[Infra] Support .NET 11#3867
martincostello wants to merge 128 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

❌ Patch coverage is 72.88136% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.55%. Comparing base (4843598) to head (553c164).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rter.Geneva/Internal/Tld/UncheckedASCIIEncoding.cs 6.66% 14 Missing ⚠️
src/OpenTelemetry.Resources.Host/HostDetector.cs 60.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3867      +/-   ##
==========================================
- Coverage   77.84%   77.55%   -0.30%     
==========================================
  Files         473      473              
  Lines       20205    20235      +30     
==========================================
- Hits        15729    15693      -36     
- Misses       4476     4542      +66     
Flag Coverage Δ
unittests-Contrib.Shared.Tests 89.92% <ø> (ø)
unittests-Exporter.Geneva 56.46% <30.00%> (+0.06%) ⬆️
unittests-Exporter.InfluxDB 97.96% <ø> (ø)
unittests-Exporter.OneCollector 95.60% <100.00%> (ø)
unittests-Extensions 96.17% <ø> (+0.42%) ⬆️
unittests-Extensions.Enrichment 100.00% <ø> (ø)
unittests-Extensions.Enrichment.AspNetCore 86.27% <ø> (ø)
unittests-Extensions.Enrichment.Http 94.33% <ø> (ø)
unittests-Instrumentation.AWS 85.42% <100.00%> (+0.06%) ⬆️
unittests-Instrumentation.AspNet 79.01% <ø> (ø)
unittests-Instrumentation.AspNetCore 87.46% <100.00%> (+0.26%) ⬆️
unittests-Instrumentation.Cassandra 92.30% <ø> (ø)
unittests-Instrumentation.ConfluentKafka 83.42% <100.00%> (-0.12%) ⬇️
unittests-Instrumentation.ElasticsearchClient 80.60% <100.00%> (+0.23%) ⬆️
unittests-Instrumentation.EntityFrameworkCore 81.02% <ø> (ø)
unittests-Instrumentation.EventCounters 75.45% <ø> (ø)
unittests-Instrumentation.GrpcCore 91.12% <ø> (ø)
unittests-Instrumentation.GrpcNetClient 78.09% <ø> (ø)
unittests-Instrumentation.Hangfire 88.88% <ø> (ø)
unittests-Instrumentation.Http 73.27% <100.00%> (-2.34%) ⬇️
unittests-Instrumentation.Kusto 91.66% <ø> (-0.76%) ⬇️
unittests-Instrumentation.Owin 89.02% <ø> (ø)
unittests-Instrumentation.Process 100.00% <ø> (ø)
unittests-Instrumentation.Quartz 77.77% <ø> (ø)
unittests-Instrumentation.Remoting 65.59% <ø> (ø)
unittests-Instrumentation.Runtime 79.87% <ø> (-20.13%) ⬇️
unittests-Instrumentation.ServiceFabricRemoting 39.91% <ø> (ø)
unittests-Instrumentation.SqlClient 83.71% <100.00%> (+0.34%) ⬆️
unittests-Instrumentation.StackExchangeRedis 94.98% <ø> (ø)
unittests-Instrumentation.Wcf 82.52% <ø> (-0.13%) ⬇️
unittests-OpAmp.Client 86.24% <100.00%> (-0.99%) ⬇️
unittests-PersistentStorage 71.09% <100.00%> (+0.42%) ⬆️
unittests-PowerShellScripts 86.27% <ø> (ø)
unittests-Resources.AWS 72.88% <100.00%> (+0.09%) ⬆️
unittests-Resources.Azure 84.18% <ø> (ø)
unittests-Resources.Container 81.81% <100.00%> (+1.04%) ⬆️
unittests-Resources.Gcp 80.70% <ø> (ø)
unittests-Resources.Host 71.23% <60.00%> (-1.11%) ⬇️
unittests-Resources.OperatingSystem 77.16% <ø> (ø)
unittests-Resources.Process 90.90% <ø> (ø)
unittests-Resources.ProcessRuntime 80.76% <ø> (ø)
unittests-Sampler.AWS 96.05% <100.00%> (-0.18%) ⬇️

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%) ⬆️
...rter.Geneva/Internal/MsgPack/MsgPackLogExporter.cs 92.52% <100.00%> (ø)
...metry.Exporter.Geneva/Internal/Tld/TldLogCommon.cs 66.91% <100.00%> (+0.25%) ⬆️
...er.OneCollector/Internal/ConnectionStringParser.cs 100.00% <100.00%> (ø)
...Exporter.OneCollector/Internal/EventNameManager.cs 100.00% <100.00%> (ø)
...erialization/CommonSchemaJsonSerializationState.cs 97.72% <100.00%> (ø)
...y.Extensions/Trace/ConsistentProbabilitySampler.cs 100.00% <ø> (ø)
...on.AWS/Implementation/AWSTracingPipelineHandler.cs 93.52% <100.00%> (+0.04%) ⬆️
...tion.AWS/Implementation/SnsRequestContextHelper.cs 92.30% <100.00%> (ø)
...tion.AWS/Implementation/SqsRequestContextHelper.cs 92.30% <100.00%> (ø)
... and 18 more

... and 12 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.
Use `StringStream` to simplify code.
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Jul 18, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-08-04 07:12 UTC

Move out of draft to request review.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@martincostello martincostello mentioned this pull request Jul 21, 2026
4 tasks
@martincostello martincostello mentioned this pull request Jul 29, 2026
4 tasks
Comment thread examples/wcf/shared/Examples.Wcf.Shared.csproj Outdated
Add `unsafe` blocks around unsafe method calls.
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: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.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.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.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

Development

Successfully merging this pull request may close these issues.

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

2 participants