From a3867d43af02c3633002203cad99776228e00ded Mon Sep 17 00:00:00 2001 From: Joao Grassi Date: Sat, 17 Jul 2021 00:18:32 +0200 Subject: [PATCH] Remove net452 from Sql Client project (#2139) (#2148) Co-authored-by: Cijo Thomas --- .../.publicApi/net452/PublicAPI.Unshipped.txt | 10 ---------- .../CHANGELOG.md | 3 +++ .../OpenTelemetry.Instrumentation.SqlClient.csproj | 2 +- ...enTelemetry.Instrumentation.SqlClient.Tests.csproj | 11 ++--------- .../SqlClientTests.cs | 4 ---- 5 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 src/OpenTelemetry.Instrumentation.SqlClient/.publicApi/net452/PublicAPI.Unshipped.txt diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/.publicApi/net452/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Instrumentation.SqlClient/.publicApi/net452/PublicAPI.Unshipped.txt deleted file mode 100644 index 83aa554a2..000000000 --- a/src/OpenTelemetry.Instrumentation.SqlClient/.publicApi/net452/PublicAPI.Unshipped.txt +++ /dev/null @@ -1,10 +0,0 @@ -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions.EnableConnectionLevelAttributes.get -> bool -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions.EnableConnectionLevelAttributes.set -> void -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions.Enrich.get -> System.Action -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions.Enrich.set -> void -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions.SetDbStatement.get -> bool -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions.SetDbStatement.set -> void -OpenTelemetry.Instrumentation.SqlClient.SqlClientInstrumentationOptions.SqlClientInstrumentationOptions() -> void -OpenTelemetry.Trace.TracerProviderBuilderExtensions -static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddSqlClientInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configureSqlClientInstrumentationOptions = null) -> OpenTelemetry.Trace.TracerProviderBuilder diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/CHANGELOG.md b/src/OpenTelemetry.Instrumentation.SqlClient/CHANGELOG.md index 0af9b48a1..fc9eda4df 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/CHANGELOG.md +++ b/src/OpenTelemetry.Instrumentation.SqlClient/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +* Removes .NET Framework 4.5.2 support. The minimum .NET Framework version + supported is .NET 4.6.1. ([#2138](https://github.com/open-telemetry/opentelemetry-dotnet/issues/2138)) + ## 1.0.0-rc7 Released 2021-Jul-12 diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj b/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj index 94831c1d3..0ade9df73 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj +++ b/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj @@ -1,7 +1,7 @@  - netstandard2.0;net452;net461 + netstandard2.0;net461 SqlClient instrumentation for OpenTelemetry .NET $(PackageTags);distributed-tracing true diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/OpenTelemetry.Instrumentation.SqlClient.Tests.csproj b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/OpenTelemetry.Instrumentation.SqlClient.Tests.csproj index a6df4d2c7..923754418 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/OpenTelemetry.Instrumentation.SqlClient.Tests.csproj +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/OpenTelemetry.Instrumentation.SqlClient.Tests.csproj @@ -2,7 +2,7 @@ Unit test project for OpenTelemetry SqlClient instrumentations netcoreapp2.1;netcoreapp3.1;net5.0 - $(TargetFrameworks);net452;net461 + $(TargetFrameworks);net461 $(TARGET_FRAMEWORK) @@ -14,7 +14,7 @@ - + @@ -22,16 +22,9 @@ all runtime; build; native; contentfiles; analyzers - - - - - - - diff --git a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs index 7f9998115..00031391b 100644 --- a/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs +++ b/test/OpenTelemetry.Instrumentation.SqlClient.Tests/SqlClientTests.cs @@ -18,11 +18,7 @@ using System; using System.Data; using System.Diagnostics; using System.Linq; -#if NET452 -using System.Data.SqlClient; -#else using Microsoft.Data.SqlClient; -#endif using Moq; using OpenTelemetry.Instrumentation.SqlClient.Implementation; using OpenTelemetry.Tests;