Skip to content
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2b526e6
Support .NET 10
martincostello Jun 9, 2025
9f9a09b
Fix test
martincostello Jun 9, 2025
b3440fb
Update to .NET 10 preview 5
martincostello Jun 11, 2025
b50870a
Update to .NET 10 preview 6
martincostello Jul 16, 2025
3a2a34b
Fix NU1510 warning
martincostello Jul 16, 2025
5237af0
Fix NU1510 warning
martincostello Jul 16, 2025
4086449
Fix NU1510 warning
martincostello Jul 18, 2025
4316245
Fix HTTP instrumentation tests for .NET 10
martincostello Jul 18, 2025
c5fa2db
Fix formatting
martincostello Jul 18, 2025
f692321
Fix Dockerfile
martincostello Jul 27, 2025
da95433
Update to .NET 10 preview 7
martincostello Aug 13, 2025
7092580
[AspNetCore] Update Blazor test
martincostello Aug 21, 2025
491559a
[Infra] Update to .NET 10 RC1
martincostello Sep 9, 2025
cddc78f
[Infra] Fix .NET install
martincostello Sep 9, 2025
0347a41
[Infra] Fix broken test
martincostello Sep 9, 2025
20cd570
[Instrumentation.Http] Skip code under .NET 10
martincostello Sep 29, 2025
03f0068
Merge branch 'main' into dotnet-10
martincostello Oct 7, 2025
de4a89c
[Infra] Add net10.0 versions
martincostello Oct 7, 2025
2fa9585
[OneCollector] Avoid System.Text.Json reference
martincostello Oct 7, 2025
5298125
Merge branch 'main' into dotnet-10
martincostello Oct 10, 2025
b56eb86
[Infra] Fix comment
martincostello Oct 10, 2025
f05c0ad
Merge branch 'main' into dotnet-10
martincostello Oct 14, 2025
ecf47f9
[Infra] Update to .NET 10 RC2
martincostello Oct 14, 2025
25c3e5b
Merge branch 'main' into dotnet-10
martincostello Oct 15, 2025
862e6cf
Add workaround for RC2 issue
martincostello Oct 15, 2025
4a444b8
Suppress NuGet Audit warning
martincostello Oct 15, 2025
d497df0
Merge branch 'main' into dotnet-10
martincostello Oct 22, 2025
49dc1bb
Merge branch 'main' into dotnet-10
martincostello Oct 23, 2025
da90f21
[Infra] Remove redundant workaround
martincostello Oct 23, 2025
589091d
[Infra] Update CHANGELOGs
martincostello Oct 23, 2025
f26147c
Merge branch 'main' into dotnet-10
martincostello Oct 23, 2025
0bb3552
[Infra] Update CHANGELOGs
martincostello Oct 23, 2025
682ec14
Merge branch 'main' into dotnet-10
martincostello Oct 24, 2025
2bee7d7
[Infra] Fix-up CHANGELOG
martincostello Oct 24, 2025
f6338cb
Merge branch 'main' into dotnet-10
martincostello Oct 31, 2025
682a536
[Infra] Fix CHANGELOGs
martincostello Oct 31, 2025
cd80289
Merge branch 'main' into dotnet-10
martincostello Nov 3, 2025
743a289
Merge branch 'main' into dotnet-10
martincostello Nov 4, 2025
4a2ab57
Merge branch 'main' into dotnet-10
martincostello Nov 4, 2025
d881e68
[AspNetCore] Fix routing tests for .NET 10
martincostello Nov 4, 2025
bb1da86
Add net10.0 to matrix
martincostello Nov 4, 2025
5bee203
Merge branch 'main' into dotnet-10
martincostello Nov 5, 2025
3bdb09d
[Infra] Depend on 1.14.0-rc.1
martincostello Nov 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Component.BuildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
required: false
type: string
tfm-list:
default: '[ "net462", "net8.0", "net9.0" ]'
default: '[ "net462", "net8.0", "net9.0", "net10.0" ]'
required: false
type: string
test-case-filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
fail-fast: false
matrix:
os: [ windows-latest, ubuntu-24.04 ]
version: [ net462, net8.0 ]
version: [ net462, net8.0, net10.0 ]
exclude:
- os: ubuntu-24.04
version: net462
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ jobs:
with:
project-name: OpenTelemetry.Instrumentation.AspNetCore
code-cov-name: Instrumentation.AspNetCore
tfm-list: '[ "net8.0", "net9.0" ]'
tfm-list: '[ "net8.0", "net9.0", "net10.0" ]'

build-test-instrumentation-aws:
needs: detect-changes
Expand All @@ -241,7 +241,7 @@ jobs:
with:
project-name: OpenTelemetry.Instrumentation.AWS
code-cov-name: Instrumentation.AWS
tfm-list: '[ "net472", "net8.0", "net9.0" ]'
tfm-list: '[ "net472", "net8.0", "net9.0", "net10.0" ]'

build-test-instrumentation-cassandra:
needs: detect-changes
Expand Down Expand Up @@ -317,7 +317,7 @@ jobs:
with:
project-name: OpenTelemetry.Instrumentation.EventCounters
code-cov-name: Instrumentation.EventCounters
tfm-list: '[ "net8.0", "net9.0" ]'
tfm-list: '[ "net8.0", "net9.0", "net10.0" ]'

build-test-instrumentation-grpccore:
needs: detect-changes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [net8.0]
version: [net8.0, net10.0]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

Expand All @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [net8.0]
version: [net8.0, net10.0]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verifyaotcompat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
os: [ ubuntu-24.04, windows-latest ]
version: [ net8.0, net9.0 ]
version: [ net8.0, net9.0, net10.0 ]

runs-on: ${{ matrix.os }}
steps:
Expand Down
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
<ArtifactsPath>$([System.IO.Path]::Combine('$(MSBuildThisFileDirectory)', 'artifacts'))</ArtifactsPath>
<UseArtifactsOutput>true</UseArtifactsOutput>
</PropertyGroup>
<!-- HACK Workaround for https://github.com/dotnet/sdk/issues/51265 -->
<PropertyGroup>
<RestoreEnablePackagePruning>false</RestoreEnablePackagePruning>
</PropertyGroup>
Comment on lines +6 to +9
Copy link
Member Author

Choose a reason for hiding this comment

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

Opened #3340 to track removing this for GA.

</Project>
9 changes: 9 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
<PackageVersion Update="Microsoft.Extensions.Configuration" Version="[9.0.0,)" />
<PackageVersion Update="Microsoft.Extensions.Options" Version="[9.0.0,)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageVersion Update="Microsoft.Extensions.Configuration" Version="[10.0.0-rc.2.25502.107,)" />
<PackageVersion Update="Microsoft.Extensions.Options" Version="[10.0.0-rc.2.25502.107,)" />
</ItemGroup>

<ItemGroup Label="Production other packages">
<PackageVersion Include="Amazon.Lambda.APIGatewayEvents" Version="[2.7.0,)" />
Expand Down Expand Up @@ -146,6 +150,11 @@
<PackageVersion Update="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.10" />
<PackageVersion Update="Microsoft.AspNetCore.SignalR.Client" Version="9.0.10" />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))" Label="Non-production packages, such as for examples and tests, for .NET 10">
<PackageVersion Update="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="10.0.0-rc.2.25502.107" />
<PackageVersion Update="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.0-rc.2.25502.107" />
<PackageVersion Update="Microsoft.AspNetCore.SignalR.Client" Version="10.0.0-rc.2.25502.107" />
</ItemGroup>

</Project>

2 changes: 1 addition & 1 deletion build/Common.nonprod.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<PropertyGroup Label="Target frameworks used in by test projects">
<!-- OmniSharp/VS Code requires TargetFrameworks to be in descending order for IntelliSense and analysis. -->
<SupportedNetTargets>net9.0;net8.0</SupportedNetTargets>
<SupportedNetTargets>net10.0;net9.0;net8.0</SupportedNetTargets>
</PropertyGroup>

<ItemGroup Condition="'$(IsTestProject)' == 'true'">
Expand Down
9 changes: 9 additions & 0 deletions build/docker-compose.net10.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3.7'

services:
tests:
build:
args:
PUBLISH_FRAMEWORK: net10.0
TEST_SDK_VERSION: "10.0"
BUILD_SDK_VERSION: "10.0"
2 changes: 1 addition & 1 deletion build/docker-compose.net8.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ services:
args:
PUBLISH_FRAMEWORK: net8.0
TEST_SDK_VERSION: "8.0"
BUILD_SDK_VERSION: "9.0"
BUILD_SDK_VERSION: "10.0"
2 changes: 1 addition & 1 deletion build/docker-compose.net9.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ services:
args:
PUBLISH_FRAMEWORK: net9.0
TEST_SDK_VERSION: "9.0"
BUILD_SDK_VERSION: "9.0"
BUILD_SDK_VERSION: "10.0"
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"rollForward": "latestFeature",
"rollForward": "latestMajor",
"allowPrerelease": false,
"version": "9.0.306"
"version": "10.0.100-rc.2.25502.107"
}
}
1 change: 1 addition & 0 deletions opentelemetry-dotnet-contrib.sln
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{824BD1DE
build\debug.snk = build\debug.snk
build\docker-compose.net8.0.yml = build\docker-compose.net8.0.yml
build\docker-compose.net9.0.yml = build\docker-compose.net9.0.yml
build\docker-compose.net10.0.yml = build\docker-compose.net10.0.yml
build\opentelemetry-icon-color.png = build\opentelemetry-icon-color.png
build\OpenTelemetryContrib.prod.ruleset = build\OpenTelemetryContrib.prod.ruleset
build\OpenTelemetryContrib.test.ruleset = build\OpenTelemetryContrib.test.ruleset
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Exporter.Geneva/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.1

Released 2025-Oct-29
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Exporter.InfluxDB/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.0.0-alpha.5

Released 2025-Oct-23
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Exporter.Instana/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.0.4

Released 2025-Oct-23
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Exporter.OneCollector/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0

Released 2025-Oct-24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@

<ItemGroup>
<PackageReference Include="OpenTelemetry" />
<PackageReference Include="System.Text.Json" />
</ItemGroup>

<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
<PackageReference Update="System.Text.Json" VersionOverride="[6.0.10,)" />
<PackageReference Include="System.Text.Json" VersionOverride="[6.0.10,)" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Extensions.AWS/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0

Released 2025-Oct-29
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Extensions.Enrichment/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.1

Released 2025-Oct-20
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Extensions/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.1

Released 2025-Oct-23
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.AWS/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0

Released 2025-Oct-29
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.AWSLambda/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0

Released 2025-Oct-29
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.AspNetCore/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0

Released 2025-Oct-22
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.Cassandra/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.0.0-beta.3

Released 2025-Oct-23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 0.1.0-alpha.3

Released 2025-Oct-23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.1

Released 2025-Oct-23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.2

Released 2025-Nov-03
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-alpha.1

Released 2025-Oct-23
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.GrpcCore/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.0.0-beta.7

Released 2025-Oct-23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.1

Released 2025-Oct-22
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.Hangfire/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.1

Released 2025-Oct-23
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.Http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0

Released 2025-Oct-22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ internal sealed class HttpHandlerDiagnosticListener : ListenerHandler
internal static readonly AssemblyName AssemblyName = typeof(HttpHandlerDiagnosticListener).Assembly.GetName();
internal static readonly bool IsNet7OrGreater = Environment.Version.Major >= 7;
internal static readonly bool IsNet9OrGreater = Environment.Version.Major >= 9;
internal static readonly bool IsNet10OrGreater = Environment.Version.Major >= 10;

// https://github.com/dotnet/runtime/blob/7d034ddbbbe1f2f40c264b323b3ed3d6b3d45e9a/src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs#L19
internal static readonly string ActivitySourceName = AssemblyName.Name + ".HttpClient";
Expand Down Expand Up @@ -178,7 +179,8 @@ public void OnStopActivity(Activity activity, object? payload)
var requestTaskStatus = GetRequestStatus(payload);

var currentStatusCode = activity.Status;
if (requestTaskStatus != TaskStatus.RanToCompletion)

if (!IsNet10OrGreater && requestTaskStatus != TaskStatus.RanToCompletion)
{
if (requestTaskStatus == TaskStatus.Canceled)
{
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.Owin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.1

Released 2025-Oct-23
Expand Down
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.Process/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Add support for .NET 10.0.
([#2822](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2822))

## 1.13.0-beta.1

Released 2025-Oct-22
Expand Down
Loading