From 2d02255bf802cc06ec4d5106a3dbf8c35e6ef725 Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Thu, 8 Dec 2022 13:25:07 -0800 Subject: [PATCH] remove `ImplicitUsings disable` from projects (part 7) (#3991) * remove ImplicitUsings disable from projects. ZPages * Hosting * Propagators * remove implicitusings disable from projectsn AspNetCore * Http and GrpcNetClient * remove implicitusings disable from projects SqlClient * Shims --- .../Implementation/SqlActivitySourceHelper.cs | 2 -- .../Implementation/SqlClientDiagnosticListener.cs | 1 - .../Implementation/SqlClientInstrumentationEventSource.cs | 1 - .../Implementation/SqlEventSourceListener.netfx.cs | 1 - .../OpenTelemetry.Instrumentation.SqlClient.csproj | 1 - .../SqlClientInstrumentation.cs | 5 +---- .../SqlClientInstrumentationOptions.cs | 1 - .../TracerProviderBuilderExtensions.cs | 1 - .../OpenTelemetry.Shims.OpenTracing.csproj | 1 - src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs | 4 ---- src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs | 2 -- src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs | 2 -- src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs | 3 --- src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs | 1 - 14 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs index fbf4fb7d83a..271a9417f7f 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs @@ -13,8 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using OpenTelemetry.Trace; diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs index b383ab03896..8849f218b72 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientDiagnosticListener.cs @@ -14,7 +14,6 @@ // limitations under the License. // #if !NETFRAMEWORK -using System; using System.Data; using System.Diagnostics; using OpenTelemetry.Trace; diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs index 31a7a9737bf..4afdbac2da1 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlClientInstrumentationEventSource.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics.Tracing; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs index c2065174776..a06c77c428c 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlEventSourceListener.netfx.cs @@ -15,7 +15,6 @@ // #if NETFRAMEWORK -using System; using System.Diagnostics; using System.Diagnostics.Tracing; using OpenTelemetry.Trace; diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj b/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj index a986f0ebfcf..d800a38d9c9 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj +++ b/src/OpenTelemetry.Instrumentation.SqlClient/OpenTelemetry.Instrumentation.SqlClient.csproj @@ -9,7 +9,6 @@ disable - disable diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs index bd6ecbe1238..380d70b20fb 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentation.cs @@ -13,10 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // -using System; -#if !NETFRAMEWORK -using System.Collections.Generic; -#endif + using OpenTelemetry.Instrumentation.SqlClient.Implementation; namespace OpenTelemetry.Instrumentation.SqlClient diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs index 121fed50b81..fdb0e29eff4 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/SqlClientInstrumentationOptions.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Collections.Concurrent; using System.Data; using System.Diagnostics; diff --git a/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs index a12ae44c884..2279e97f5fc 100644 --- a/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.SqlClient/TracerProviderBuilderExtensions.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry.Instrumentation.SqlClient; using OpenTelemetry.Instrumentation.SqlClient.Implementation; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Shims.OpenTracing/OpenTelemetry.Shims.OpenTracing.csproj b/src/OpenTelemetry.Shims.OpenTracing/OpenTelemetry.Shims.OpenTracing.csproj index 5b7e1a27a48..d8070e7f7a6 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/OpenTelemetry.Shims.OpenTracing.csproj +++ b/src/OpenTelemetry.Shims.OpenTracing/OpenTelemetry.Shims.OpenTracing.csproj @@ -12,7 +12,6 @@ disable - disable diff --git a/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs b/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs index 0617a16cbe7..2984d3e7e38 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/ScopeManagerShim.cs @@ -14,11 +14,7 @@ // limitations under the License. // -using System; using System.Runtime.CompilerServices; -#if DEBUG -using System.Threading; -#endif using OpenTelemetry.Internal; using OpenTelemetry.Trace; using OpenTracing; diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs index 5cdbe55e85d..0c42afc6186 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using OpenTelemetry.Internal; using OpenTelemetry.Trace; using OpenTracing; diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs index 48e7c3dc28b..4b3d979cddd 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanContextShim.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using OpenTracing; namespace OpenTelemetry.Shims.OpenTracing diff --git a/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs b/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs index 0ce964a3302..a50d5ff0892 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Linq; using OpenTelemetry.Internal; using OpenTelemetry.Trace; using OpenTracing; diff --git a/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs b/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs index 906d78315f8..f2a3c476cc4 100644 --- a/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs +++ b/src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using OpenTelemetry.Context.Propagation; using OpenTelemetry.Internal; using OpenTracing.Propagation;