Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
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
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-rc.2@sha256:8e8a5bbd8dd6a6c594d6c08775fd5fc4a40b67d6bbd27882e6e8b9d5684eac97 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-rc.2-noble-chiseled-extra@sha256:beafafb89f2a2bba07de746c36b59f59238b80d16ab4a8f66ba5750704e1380b 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 @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="AWSSDK.S3" Version="4.0.7.9" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.20" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.0-rc.2.25502.107" />
<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" />
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.414",
"version": "10.0.100-rc.2.25502.1",
"allowPrerelease": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
<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-rc.2.25502.107" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MinVer" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion 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 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 Down
Loading