Remove unnecessary using statements (#4023)

* Remove unnecessary using statements from docs, examples, benchmarks and stress tests
This commit is contained in:
Utkarsh Umesan Pillai 2022-12-20 11:20:15 -08:00 committed by GitHub
parent 54b60b59b4
commit 3157b5ce12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
60 changed files with 0 additions and 119 deletions

View File

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

View File

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

View File

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

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
using OpenTelemetry;

View File

@ -15,7 +15,6 @@
// </copyright>
using System.Collections;
using System.Collections.Generic;
namespace Redaction
{

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using OpenTelemetry;
using OpenTelemetry.Logs;

View File

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

View File

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

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using OpenTelemetry.Metrics;
internal static class MyExporterExtensions

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 OpenTelemetry;

View File

@ -14,9 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics.Metrics;
using System.Threading;
using OpenTelemetry;
using OpenTelemetry.Metrics;

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 OpenTelemetry;

View File

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

View File

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

View File

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

View File

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

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using OpenTelemetry.Resources;
internal class MyResourceDetector : IResourceDetector

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Trace;
internal class MySampler : Sampler

View File

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

View File

@ -14,16 +14,10 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Examples.Console
{

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Diagnostics;
using System.Net.Http;
using OpenTelemetry;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;

View File

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

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.Extensions.Logging;
using OpenTelemetry.Logs;

View File

@ -14,11 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Metrics;
using System.Threading.Tasks;
using OpenTelemetry;
using OpenTelemetry.Exporter;
using OpenTelemetry.Metrics;

View File

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

View File

@ -14,12 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Metrics;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry;
using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;

View File

@ -15,7 +15,6 @@
// </copyright>
using System.Diagnostics;
using System.Threading;
using OpenTelemetry;
using OpenTelemetry.Exporter.ZPages;
using OpenTelemetry.Trace;

View File

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

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace Examples.GrpcService
{
public class Program

View File

@ -14,9 +14,7 @@
// limitations under the License.
// </copyright>
using System.Threading.Tasks;
using Grpc.Core;
using Microsoft.Extensions.Logging;
namespace Examples.GrpcService
{

View File

@ -14,13 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OpenTelemetry;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;

View File

@ -14,12 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using Microsoft.Extensions.Logging;
using OpenTelemetry;
using OpenTelemetry.Context.Propagation;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Microsoft.Extensions.Logging;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;

View File

@ -15,7 +15,6 @@
// </copyright>
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Utils.Messaging;
namespace WebApi.Controllers

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace WebApi
{
public class Program

View File

@ -14,12 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OpenTelemetry;
using OpenTelemetry.Trace;
using Utils.Messaging;

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OpenTelemetry;
using OpenTelemetry.Trace;
using Utils.Messaging;

View File

@ -14,9 +14,6 @@
// limitations under the License.
// </copyright>
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Utils.Messaging;
namespace WorkerService

View File

@ -16,9 +16,7 @@
extern alias OpenTelemetryProtocol;
using System;
using System.Diagnostics;
using System.Threading;
using BenchmarkDotNet.Attributes;
using Benchmarks.Helper;
using Grpc.Core;

View File

@ -16,9 +16,7 @@
extern alias OpenTelemetryProtocol;
using System;
using System.Diagnostics;
using System.IO;
using BenchmarkDotNet.Attributes;
using Benchmarks.Helper;
using OpenTelemetry;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using BenchmarkDotNet.Attributes;
using OpenTelemetry;

View File

@ -16,9 +16,7 @@
extern alias Zipkin;
using System;
using System.Diagnostics;
using System.IO;
using BenchmarkDotNet.Attributes;
using Benchmarks.Helper;
using OpenTelemetry;

View File

@ -14,10 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Benchmarks.Helper
{

View File

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

View File

@ -14,10 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using OpenTelemetry;
using OpenTelemetry.Resources;

View File

@ -14,9 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Net.Http;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using OpenTelemetry.Tests;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using BenchmarkDotNet.Attributes;
using Microsoft.Extensions.Logging;

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 BenchmarkDotNet.Attributes;

View File

@ -14,11 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using OpenTelemetry;
using OpenTelemetry.Metrics;

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 BenchmarkDotNet.Attributes;

View File

@ -14,11 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Metrics;
using System.Threading;
using BenchmarkDotNet.Attributes;
using OpenTelemetry;
using OpenTelemetry.Metrics;

View File

@ -14,8 +14,6 @@
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Tests
{
internal class TestExporter<T> : BaseExporter<T>

View File

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

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using OpenTelemetry;
using OpenTelemetry.Logs;
namespace OpenTelemetry.Tests.Stress;

View File

@ -16,7 +16,6 @@
using System.Runtime.CompilerServices;
using Microsoft.Extensions.Logging;
using OpenTelemetry.Logs;
namespace OpenTelemetry.Tests.Stress;

View File

@ -14,10 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics.Metrics;
using System.Runtime.CompilerServices;
using System.Threading;
using OpenTelemetry.Metrics;
namespace OpenTelemetry.Tests.Stress;

View File

@ -14,13 +14,9 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Diagnostics.Metrics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Metrics;
namespace OpenTelemetry.Tests.Stress;

View File

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

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
namespace TestApp.AspNetCore.Controllers