Skip to content
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
adf1b9b
Support .NET 10
martincostello Aug 6, 2025
0ff8ec0
Fix workflows
martincostello Aug 6, 2025
7f0bec6
Update to .NET 10 preview 7
martincostello Aug 18, 2025
0284267
Update to .NET 10 RC1
martincostello Sep 10, 2025
2d1ee97
Update to .NET 10 RC2
martincostello Oct 16, 2025
3141f6c
Fix build
martincostello Oct 16, 2025
37c44d7
Fix build
martincostello Oct 16, 2025
c3ea215
Update to .NET 10 GA
martincostello Nov 12, 2025
7b04afc
Bump Swashbuckle.AspNetCore
martincostello Nov 12, 2025
10bb70c
Update CHANGELOG
martincostello Nov 12, 2025
14a6b5f
Merge branch 'main' into dotnet-vnext
martincostello Nov 12, 2025
bdd9ca1
Bump NuGet packages
martincostello Sep 25, 2025
c879e3d
Update to OpenTelemetry 1.13.0
martincostello Oct 1, 2025
b0e72de
Update CHANGELOG
martincostello Oct 6, 2025
0f4cf3d
Update test dependencies
martincostello Oct 6, 2025
612b260
Update OpenTelemetry
martincostello Oct 22, 2025
c11595a
Fix tests
martincostello Oct 22, 2025
a8e9c07
Rename attribute
martincostello Oct 22, 2025
b14931b
Update NuGet packages
martincostello Oct 23, 2025
d083f54
Update CHANGELOG
martincostello Oct 23, 2025
bac81da
Update OTel packages to 1.14.*
martincostello Nov 13, 2025
4741142
Update CHANGELOG
martincostello Nov 13, 2025
75308da
Update CHANGELOG
martincostello Nov 13, 2025
c1beb65
Update CHANGELOG
martincostello Nov 13, 2025
2bf320d
Update NuGet packages
martincostello Nov 14, 2025
406132d
Merge branch 'bump-packages' into dotnet-vnext
martincostello Nov 14, 2025
37023db
Update NuGet packages
martincostello Nov 14, 2025
f4dc24c
Merge branch 'main' into dotnet-vnext
martincostello Nov 14, 2025
1bd7ed6
Fix condition
martincostello Nov 14, 2025
b19b676
Merge branch 'main' into dotnet-vnext
martincostello Nov 14, 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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
filter: 'tree:0'
show-progress: false

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: '8.0.x'

- name: Setup .NET SDK
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
id: setup-dotnet
Expand Down
327 changes: 327 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

64 changes: 0 additions & 64 deletions GrafanaOpenTelemetry.sln

This file was deleted.

18 changes: 18 additions & 0 deletions GrafanaOpenTelemetry.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Solution>
<Folder Name="/docker/">
<Project Path="docker/docker-compose-aspnetcore/docker-compose-aspnetcore.dcproj">
<Build />
</Project>
</Folder>
<Folder Name="/examples/" />
<Folder Name="/examples/net10.0/">
<Project Path="examples/net10.0/aspnetcore/aspnetcore.csproj" />
</Folder>
<Folder Name="/src/">
<Project Path="src/Grafana.OpenTelemetry.Base/Grafana.OpenTelemetry.Base.csproj" />
<Project Path="src/Grafana.OpenTelemetry/Grafana.OpenTelemetry.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/Grafana.OpenTelemetry.Tests/Grafana.OpenTelemetry.Tests.csproj" />
</Folder>
</Solution>
2 changes: 1 addition & 1 deletion docker/docker-compose-aspnetcore/docker-compose.oats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: ${DOCKER_REGISTRY-}aspnetcore
build:
context: ../..
dockerfile: examples/net8.0/aspnetcore/Dockerfile
dockerfile: examples/net10.0/aspnetcore/Dockerfile
args:
DOTNET_PUBLISH_ARGS: "/p:BuildDistroFromSource=${BUILD_DISTRO_FROM_SOURCE:-true}"
environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: ${DOCKER_REGISTRY-}aspnetcore
build:
context: ../..
dockerfile: examples/net8.0/aspnetcore/Dockerfile
dockerfile: examples/net10.0/aspnetcore/Dockerfile
args:
DOTNET_PUBLISH_ARGS: "--self-contained true /p:PublishSingleFile=true /p:BuildDistroFromSource=${BUILD_DISTRO_FROM_SOURCE:-true}"
entrypoint: ./aspnetcore
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-aspnetcore/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: ${DOCKER_REGISTRY-}aspnetcore
build:
context: ../..
dockerfile: examples/net8.0/aspnetcore/Dockerfile
dockerfile: examples/net10.0/aspnetcore/Dockerfile
args:
DOTNET_PUBLISH_ARGS: "/p:BuildDistroFromSource=${BUILD_DISTRO_FROM_SOURCE:-true}"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-aspnetcore/oats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ expected:
attributes:
db.system: sqlite
db.name: main
server.address: /app/App_Data/TodoApp.db
peer.service: /app/App_Data/TodoApp.db
otel.library.name: OpenTelemetry.Instrumentation.EntityFrameworkCore
- traceql: '{ span.http.route =~ "api/Aws/ListBuckets" }'
spans:
Expand Down
19 changes: 19 additions & 0 deletions examples/net10.0/aspnetcore/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0.100@sha256:c7445f141c04f1a6b454181bd098dcfa606c61ba0bd213d0a702489e5bd4cd71 AS build
ARG TARGETARCH
ARG CONFIGURATION="Release"
ARG DOTNET_PUBLISH_ARGS=""

COPY . /source
WORKDIR /source

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \
dotnet publish "examples/net10.0/aspnetcore/aspnetcore.csproj" --arch "${TARGETARCH}" --configuration "${CONFIGURATION}" --output /app ${DOTNET_PUBLISH_ARGS}

FROM mcr.microsoft.com/dotnet/aspnet:10.0.0-noble-chiseled-extra@sha256:64f42416803e32bee1f5d2d3eab5825581abd45b2e9c6f888fc873ff2c4cc378 AS final
WORKDIR /app
EXPOSE 8080

COPY --from=build /app .
ENTRYPOINT ["dotnet", "aspnetcore.dll"]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
Expand All @@ -10,12 +10,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.S3" Version="4.0.11.1" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.21" />
<PackageReference Include="AWSSDK.S3" Version="4.0.11.3" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.22.1" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.12.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.6" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.14.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" />
</ItemGroup>

<ItemGroup Condition=" '$(BuildDistroFromSource)' != 'false' ">
Expand Down
19 changes: 0 additions & 19 deletions examples/net8.0/aspnetcore/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"rollForward": "latestFeature",
"version": "8.0.416",
"version": "10.0.100",
"allowPrerelease": false
}
}
33 changes: 20 additions & 13 deletions src/Grafana.OpenTelemetry.Base/Grafana.OpenTelemetry.Base.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,41 @@
<Description>Minimal Grafana distribution of OpenTelemetry .NET</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.6" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
<PackageReference Update="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="10.0.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MinVer" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="OpenTelemetry" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.12.0" />
<PackageReference Include="OpenTelemetry" Version="1.14.0" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.14.0" />
</ItemGroup>

<ItemGroup Label="Stable Instrumentation Packages">
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.14.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.14.0" />
</ItemGroup>

<ItemGroup Label="Non-stable instrumentation packages">
<PackageReference Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Process" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.12.0-beta.2" />
<PackageReference Include="OpenTelemetry.Resources.Container" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.Host" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.OperatingSystem" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.Process" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.ProcessRuntime" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Process" Version="1.14.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.Container" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.Host" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.OperatingSystem" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.Process" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Resources.ProcessRuntime" Version="1.14.0-beta.1" />
</ItemGroup>

<ItemGroup>
Expand Down
30 changes: 15 additions & 15 deletions src/Grafana.OpenTelemetry/Grafana.OpenTelemetry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description>Full Grafana distribution of OpenTelemetry .NET</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<TargetFrameworks>net8.0;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net10.0;net8.0;netstandard2.0;net462</TargetFrameworks>
</PropertyGroup>

<!--
Expand All @@ -21,34 +21,34 @@
</ItemGroup>

<!-- This dependency is pulled in by `OpenTelemetry.Instrumentation.Cassandra` with a minimum
version of 3.16.0. We change this to 3.22.0 to add support for tracing. -->
version of 3.17.0. We change this to 3.22.0 to add support for tracing. -->
<ItemGroup>
<PackageReference Include="CassandraCSharpDriver" Version="[3.22.0,)" />
</ItemGroup>

<ItemGroup Label="Stable instrumentation packages with dependencies">
<PackageReference Include="OpenTelemetry.Instrumentation.AWS" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AWSLambda" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AWS" Version="1.14.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AWSLambda" Version="1.14.0" />
</ItemGroup>

<ItemGroup Label="Non-stable instrumentation packages with dependencies, only .NET" Condition=" '$([MSBuild]::GetTargetFrameworkIdentifier(`$(TargetFramework)`))' != '.NETFramework' ">
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" /> <!-- Needed for ASP.NET Core -->
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.12.0" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.14.0" /> <!-- Needed for ASP.NET Core -->
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.14.0" />
</ItemGroup>

<ItemGroup Label="Non-stable instrumentation packages with dependencies">
<PackageReference Include="OpenTelemetry.Instrumentation.Cassandra" Version="1.0.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.ElasticsearchClient" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.12.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.Hangfire" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Quartz" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.StackExchangeRedis" Version="1.12.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.Wcf" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Cassandra" Version="1.0.0-beta.4" />
<PackageReference Include="OpenTelemetry.Instrumentation.ElasticsearchClient" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.14.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.Hangfire" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Quartz" Version="1.14.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.StackExchangeRedis" Version="1.14.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Wcf" Version="1.14.0-beta.1" />
</ItemGroup>

<ItemGroup Label="Non-stable instrumentation packages with dependencies, only .NET Framework" Condition=" '$([MSBuild]::GetTargetFrameworkIdentifier(`$(TargetFramework)`))' == '.NETFramework' ">
<PackageReference Include="OpenTelemetry.Instrumentation.AspNet" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Owin" Version="1.12.0-beta.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNet" Version="1.14.0-rc.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.Owin" Version="1.14.0-beta.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net10.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition="$([System.OperatingSystem]::IsWindows())">$(TargetFrameworks);net481</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand All @@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.4" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>
Expand Down