remove `ImplicitUsings disable` from projects (part 6) (#3990)

* remove ImplicitUsings disable from projects.
ZPages

* Hosting

* Propagators

* remove implicitusings disable from projectsn
AspNetCore

* Http and GrpcNetClient
This commit is contained in:
Timothy Mothra 2022-12-08 12:38:28 -08:00 committed by GitHub
parent e29f8443e2
commit ab3e40790d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 21 additions and 37 deletions

View File

@ -13,8 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Instrumentation.AspNetCore.Implementation;
namespace OpenTelemetry.Instrumentation.AspNetCore

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using Microsoft.AspNetCore.Http;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Reflection;
using OpenTelemetry.Instrumentation.AspNetCore.Implementation;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using Microsoft.AspNetCore.Http;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics.Tracing;
using OpenTelemetry.Internal;

View File

@ -14,10 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
#if !NETSTANDARD2_0
using System.Runtime.CompilerServices;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Metrics;
using Microsoft.AspNetCore.Http;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenTelemetry.Instrumentation.AspNetCore;

View File

@ -8,7 +8,6 @@
<!-- this is temporary. will remove in future PR. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
#if NET7_0_OR_GREATER
using System.Diagnostics;
#endif

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Instrumentation.GrpcNetClient.Implementation;
namespace OpenTelemetry.Instrumentation.GrpcNetClient

View File

@ -14,9 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Net.Http;
namespace OpenTelemetry.Instrumentation.GrpcNetClient
{

View File

@ -14,9 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Net.Http;
using System.Reflection;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Instrumentation.Http;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics.Tracing;
using OpenTelemetry.Internal;

View File

@ -8,7 +8,6 @@
<!-- this is temporary. will remove in future PR. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenTelemetry.Instrumentation.GrpcNetClient;

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Instrumentation.Http.Implementation;
namespace OpenTelemetry.Instrumentation.Http

View File

@ -14,10 +14,11 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Net;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Runtime.CompilerServices;
using OpenTelemetry.Instrumentation.Http.Implementation;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics.Metrics;
using System.Reflection;
using OpenTelemetry.Instrumentation.Http.Implementation;

View File

@ -14,9 +14,9 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
#if NETFRAMEWORK
using System.Net.Http;
#endif
namespace OpenTelemetry.Instrumentation.Http
{

View File

@ -14,11 +14,11 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Reflection;
using System.Threading.Tasks;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Trace;

View File

@ -14,10 +14,11 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Metrics;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using OpenTelemetry.Trace;
namespace OpenTelemetry.Instrumentation.Http.Implementation

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics.Tracing;
using OpenTelemetry.Internal;

View File

@ -13,9 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Concurrent;
#if NETFRAMEWORK
using System.Net.Http;
#endif
namespace OpenTelemetry.Instrumentation.Http.Implementation
{

View File

@ -15,9 +15,7 @@
// </copyright>
#if NETFRAMEWORK
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
using System.Reflection;

View File

@ -9,7 +9,6 @@
<!-- this is temporary. will remove in future PR. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenTelemetry.Instrumentation.Http;

View File

@ -14,10 +14,12 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Internal;
#pragma warning restore IDE0005
namespace OpenTelemetry.Instrumentation
{

View File

@ -13,11 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using OpenTelemetry.Internal;
#pragma warning restore IDE0005
namespace OpenTelemetry.Instrumentation
{

View File

@ -14,9 +14,11 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Diagnostics.Tracing;
using OpenTelemetry.Internal;
#pragma warning restore IDE0005
namespace OpenTelemetry.Instrumentation
{

View File

@ -14,10 +14,12 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Linq;
using System.Reflection;
using OpenTelemetry.Internal;
#pragma warning restore IDE0005
namespace OpenTelemetry.Instrumentation
{

View File

@ -14,9 +14,11 @@
// limitations under the License.
// </copyright>
#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958.
using System;
using System.Diagnostics;
using System.Linq.Expressions;
#pragma warning restore IDE0005
namespace OpenTelemetry.Instrumentation
{