From 18c85fa403dcac64ec2159461e5b7d343a9212b4 Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Fri, 13 Oct 2023 12:22:35 -0700 Subject: [PATCH 1/2] Bump Microsoft.Extensions.Logging to net8 - part 2 (#4933) --- .github/workflows/ci-instrumentation-libraries.yml | 9 +++------ Directory.Packages.props | 3 +++ build/InstrumentationLibraries.proj | 6 +++++- docs/logs/correlation/correlation.csproj | 1 - .../customizing-the-sdk/customizing-the-sdk.csproj | 1 - docs/logs/extending-the-sdk/extending-the-sdk.csproj | 1 - .../getting-started-aspnetcore.csproj | 1 - .../getting-started-console.csproj | 1 - docs/logs/redaction/redaction.csproj | 1 - .../OpenTelemetry.Instrumentation.AspNetCore.csproj | 2 +- ...penTelemetry.Instrumentation.GrpcNetClient.csproj | 2 +- .../OpenTelemetry.Instrumentation.Http.csproj | 2 +- .../OpenTelemetry.Instrumentation.SqlClient.csproj | 2 +- src/OpenTelemetry/CHANGELOG.md | 5 +++++ .../ProviderBuilderServiceCollectionExtensions.cs | 2 +- .../Logs/ILogger/OpenTelemetryLogger.cs | 3 ++- src/OpenTelemetry/OpenTelemetry.csproj | 1 + src/Shared/Options/ConfigurationExtensions.cs | 4 ++-- test/Benchmarks/Benchmarks.csproj | 1 - ...Telemetry.Instrumentation.AspNetCore.Tests.csproj | 11 ++++++++++- .../OpenTelemetry.Instrumentation.Grpc.Tests.csproj | 12 ++++++++++-- .../OpenTelemetry.Instrumentation.Http.Tests.csproj | 7 +++++++ ...etry.Instrumentation.W3cTraceContext.Tests.csproj | 2 -- .../OpenTelemetry.Tests.Stress.Logs.csproj | 1 - test/OpenTelemetry.Tests/OpenTelemetry.Tests.csproj | 1 - test/TestApp.AspNetCore/TestApp.AspNetCore.csproj | 9 +++++---- 26 files changed, 58 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci-instrumentation-libraries.yml b/.github/workflows/ci-instrumentation-libraries.yml index 546a0ae7447..35408d14250 100644 --- a/.github/workflows/ci-instrumentation-libraries.yml +++ b/.github/workflows/ci-instrumentation-libraries.yml @@ -23,9 +23,6 @@ jobs: runs-on: ${{ matrix.os }} - env: - RunningDotNetPack: true - steps: - uses: actions/checkout@v4 with: @@ -35,10 +32,10 @@ jobs: uses: actions/setup-dotnet@v3 - name: Install dependencies - run: dotnet restore ./build/InstrumentationLibraries.proj + run: dotnet restore ./build/InstrumentationLibraries.proj -p:RunningDotNetPack=true - name: Build - run: dotnet build ./build/InstrumentationLibraries.proj --configuration Release --no-restore + run: dotnet build ./build/InstrumentationLibraries.proj --configuration Release --no-restore -p:RunningDotNetPack=true - name: Test ${{ matrix.version }} - run: dotnet test **/bin/Release/${{ matrix.version }}/OpenTelemetry.Instrumentation*.Tests.dll --logger:"console;verbosity=detailed" + run: dotnet test **/bin/Release/${{ matrix.version }}/OpenTelemetry.Instrumentation*.Tests.dll --framework ${{ matrix.version }} --configuration Release --no-restore --no-build --logger:"console;verbosity=detailed" diff --git a/Directory.Packages.props b/Directory.Packages.props index 23cee35001f..a2245fd9315 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -34,7 +34,10 @@ + + +