From 3157b5ce12acd14cbd4e85dac01e7c3a283a3caa Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai Date: Tue, 20 Dec 2022 11:20:15 -0800 Subject: [PATCH] Remove unnecessary using statements (#4023) * Remove unnecessary using statements from docs, examples, benchmarks and stress tests --- docs/logs/extending-the-sdk/LoggerExtensions.cs | 1 - docs/logs/extending-the-sdk/MyExporter.cs | 1 - docs/logs/extending-the-sdk/MyProcessor.cs | 1 - docs/logs/extending-the-sdk/Program.cs | 1 - docs/logs/redaction/MyClassWithRedactionEnumerator.cs | 1 - docs/logs/redaction/MyRedactionProcessor.cs | 1 - docs/metrics/customizing-the-sdk/Program.cs | 1 - docs/metrics/extending-the-sdk/MyExporter.cs | 1 - docs/metrics/extending-the-sdk/MyExporterExtensions.cs | 2 -- docs/metrics/extending-the-sdk/Program.cs | 2 -- docs/metrics/getting-started-prometheus-grafana/Program.cs | 2 -- docs/metrics/learning-more-instruments/Program.cs | 2 -- docs/trace/extending-the-sdk/MyExporter.cs | 1 - docs/trace/extending-the-sdk/MyExporterExtensions.cs | 1 - docs/trace/extending-the-sdk/MyFilteringProcessor.cs | 1 - docs/trace/extending-the-sdk/MyProcessor.cs | 1 - docs/trace/extending-the-sdk/MyResourceDetector.cs | 1 - docs/trace/extending-the-sdk/MySampler.cs | 1 - docs/trace/reporting-exceptions/Program.cs | 1 - examples/Console/InstrumentationWithActivitySource.cs | 6 ------ examples/Console/TestHttpClient.cs | 1 - examples/Console/TestInMemoryExporter.cs | 1 - examples/Console/TestLogs.cs | 1 - examples/Console/TestMetrics.cs | 3 --- examples/Console/TestOtlpExporter.cs | 1 - examples/Console/TestPrometheusExporter.cs | 4 ---- examples/Console/TestZPagesExporter.cs | 1 - examples/Console/TestZipkinExporter.cs | 1 - examples/GrpcService/Program.cs | 3 --- examples/GrpcService/Services/GreeterService.cs | 2 -- examples/GrpcService/Startup.cs | 7 ------- .../MicroserviceExample/Utils/Messaging/MessageReceiver.cs | 4 ---- .../MicroserviceExample/Utils/Messaging/MessageSender.cs | 2 -- .../MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs | 1 - .../WebApi/Controllers/SendMessageController.cs | 1 - examples/MicroserviceExample/WebApi/Program.cs | 3 --- examples/MicroserviceExample/WebApi/Startup.cs | 6 ------ examples/MicroserviceExample/WorkerService/Program.cs | 3 --- examples/MicroserviceExample/WorkerService/Worker.cs | 3 --- test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs | 2 -- test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs | 2 -- test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs | 1 - test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs | 2 -- test/Benchmarks/Helper/ActivityHelper.cs | 3 --- .../Instrumentation/DiagnosticSourceSubscriberBenchmark.cs | 2 -- .../Instrumentation/InstrumentedHttpClientBenchmark.cs | 2 -- .../Instrumentation/UninstrumentedHttpClientBenchmark.cs | 2 -- test/Benchmarks/Logs/LogScopeBenchmarks.cs | 2 -- test/Benchmarks/Metrics/HistogramBenchmarks.cs | 2 -- test/Benchmarks/Metrics/MetricCollectBenchmarks.cs | 4 ---- test/Benchmarks/Metrics/MetricsBenchmarks.cs | 2 -- test/Benchmarks/Metrics/MetricsViewBenchmarks.cs | 3 --- test/Benchmarks/TestExporter.cs | 2 -- test/Benchmarks/Trace/SamplerBenchmarks.cs | 1 - test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs | 1 - test/OpenTelemetry.Tests.Stress.Logs/Program.cs | 1 - test/OpenTelemetry.Tests.Stress.Metrics/Program.cs | 2 -- test/OpenTelemetry.Tests.Stress/Skeleton.cs | 4 ---- .../Controllers/ChildActivityController.cs | 1 - test/TestApp.AspNetCore/Controllers/ValuesController.cs | 1 - 60 files changed, 119 deletions(-) diff --git a/docs/logs/extending-the-sdk/LoggerExtensions.cs b/docs/logs/extending-the-sdk/LoggerExtensions.cs index 644d711c1..5b9f87eb3 100644 --- a/docs/logs/extending-the-sdk/LoggerExtensions.cs +++ b/docs/logs/extending-the-sdk/LoggerExtensions.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry; using OpenTelemetry.Logs; diff --git a/docs/logs/extending-the-sdk/MyExporter.cs b/docs/logs/extending-the-sdk/MyExporter.cs index a980761e7..d2552616e 100644 --- a/docs/logs/extending-the-sdk/MyExporter.cs +++ b/docs/logs/extending-the-sdk/MyExporter.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Text; using OpenTelemetry; using OpenTelemetry.Logs; diff --git a/docs/logs/extending-the-sdk/MyProcessor.cs b/docs/logs/extending-the-sdk/MyProcessor.cs index e65790d83..4c0c54ec1 100644 --- a/docs/logs/extending-the-sdk/MyProcessor.cs +++ b/docs/logs/extending-the-sdk/MyProcessor.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry; using OpenTelemetry.Logs; diff --git a/docs/logs/extending-the-sdk/Program.cs b/docs/logs/extending-the-sdk/Program.cs index 2a2703f6e..5fea2ce69 100644 --- a/docs/logs/extending-the-sdk/Program.cs +++ b/docs/logs/extending-the-sdk/Program.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using Microsoft.Extensions.Logging; using OpenTelemetry; diff --git a/docs/logs/redaction/MyClassWithRedactionEnumerator.cs b/docs/logs/redaction/MyClassWithRedactionEnumerator.cs index 7cac15595..e8030a015 100644 --- a/docs/logs/redaction/MyClassWithRedactionEnumerator.cs +++ b/docs/logs/redaction/MyClassWithRedactionEnumerator.cs @@ -15,7 +15,6 @@ // using System.Collections; -using System.Collections.Generic; namespace Redaction { diff --git a/docs/logs/redaction/MyRedactionProcessor.cs b/docs/logs/redaction/MyRedactionProcessor.cs index 70c704dba..8a34d3614 100644 --- a/docs/logs/redaction/MyRedactionProcessor.cs +++ b/docs/logs/redaction/MyRedactionProcessor.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using OpenTelemetry; using OpenTelemetry.Logs; diff --git a/docs/metrics/customizing-the-sdk/Program.cs b/docs/metrics/customizing-the-sdk/Program.cs index 26dddcb2b..d19a12b9c 100644 --- a/docs/metrics/customizing-the-sdk/Program.cs +++ b/docs/metrics/customizing-the-sdk/Program.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics.Metrics; using OpenTelemetry; using OpenTelemetry.Metrics; diff --git a/docs/metrics/extending-the-sdk/MyExporter.cs b/docs/metrics/extending-the-sdk/MyExporter.cs index db956281a..36cb6cc46 100644 --- a/docs/metrics/extending-the-sdk/MyExporter.cs +++ b/docs/metrics/extending-the-sdk/MyExporter.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Text; using OpenTelemetry; using OpenTelemetry.Metrics; diff --git a/docs/metrics/extending-the-sdk/MyExporterExtensions.cs b/docs/metrics/extending-the-sdk/MyExporterExtensions.cs index 4821d8468..bc1ea34ea 100644 --- a/docs/metrics/extending-the-sdk/MyExporterExtensions.cs +++ b/docs/metrics/extending-the-sdk/MyExporterExtensions.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Threading; using OpenTelemetry.Metrics; internal static class MyExporterExtensions diff --git a/docs/metrics/extending-the-sdk/Program.cs b/docs/metrics/extending-the-sdk/Program.cs index 424985def..469a9aff0 100644 --- a/docs/metrics/extending-the-sdk/Program.cs +++ b/docs/metrics/extending-the-sdk/Program.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; using OpenTelemetry; diff --git a/docs/metrics/getting-started-prometheus-grafana/Program.cs b/docs/metrics/getting-started-prometheus-grafana/Program.cs index 32bfa1c65..1920698f3 100644 --- a/docs/metrics/getting-started-prometheus-grafana/Program.cs +++ b/docs/metrics/getting-started-prometheus-grafana/Program.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System; using System.Diagnostics.Metrics; -using System.Threading; using OpenTelemetry; using OpenTelemetry.Metrics; diff --git a/docs/metrics/learning-more-instruments/Program.cs b/docs/metrics/learning-more-instruments/Program.cs index 0db875f4e..40b36c115 100644 --- a/docs/metrics/learning-more-instruments/Program.cs +++ b/docs/metrics/learning-more-instruments/Program.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; using OpenTelemetry; diff --git a/docs/trace/extending-the-sdk/MyExporter.cs b/docs/trace/extending-the-sdk/MyExporter.cs index ca3582df3..3bdefc0d3 100644 --- a/docs/trace/extending-the-sdk/MyExporter.cs +++ b/docs/trace/extending-the-sdk/MyExporter.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Text; using OpenTelemetry; diff --git a/docs/trace/extending-the-sdk/MyExporterExtensions.cs b/docs/trace/extending-the-sdk/MyExporterExtensions.cs index db3ee9158..d4d9c8072 100644 --- a/docs/trace/extending-the-sdk/MyExporterExtensions.cs +++ b/docs/trace/extending-the-sdk/MyExporterExtensions.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry; using OpenTelemetry.Trace; diff --git a/docs/trace/extending-the-sdk/MyFilteringProcessor.cs b/docs/trace/extending-the-sdk/MyFilteringProcessor.cs index 5c1230fca..37571b3fd 100644 --- a/docs/trace/extending-the-sdk/MyFilteringProcessor.cs +++ b/docs/trace/extending-the-sdk/MyFilteringProcessor.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using OpenTelemetry; diff --git a/docs/trace/extending-the-sdk/MyProcessor.cs b/docs/trace/extending-the-sdk/MyProcessor.cs index 652154498..8b42d1f40 100644 --- a/docs/trace/extending-the-sdk/MyProcessor.cs +++ b/docs/trace/extending-the-sdk/MyProcessor.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using OpenTelemetry; diff --git a/docs/trace/extending-the-sdk/MyResourceDetector.cs b/docs/trace/extending-the-sdk/MyResourceDetector.cs index d78f7c8ff..1d7d4ae7b 100644 --- a/docs/trace/extending-the-sdk/MyResourceDetector.cs +++ b/docs/trace/extending-the-sdk/MyResourceDetector.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using OpenTelemetry.Resources; internal class MyResourceDetector : IResourceDetector diff --git a/docs/trace/extending-the-sdk/MySampler.cs b/docs/trace/extending-the-sdk/MySampler.cs index 81e154934..a39f0e664 100644 --- a/docs/trace/extending-the-sdk/MySampler.cs +++ b/docs/trace/extending-the-sdk/MySampler.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry.Trace; internal class MySampler : Sampler diff --git a/docs/trace/reporting-exceptions/Program.cs b/docs/trace/reporting-exceptions/Program.cs index 7ad5f7040..4ffd8a4cf 100644 --- a/docs/trace/reporting-exceptions/Program.cs +++ b/docs/trace/reporting-exceptions/Program.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using OpenTelemetry; using OpenTelemetry.Trace; diff --git a/examples/Console/InstrumentationWithActivitySource.cs b/examples/Console/InstrumentationWithActivitySource.cs index 69ccadcfd..439c5fb3e 100644 --- a/examples/Console/InstrumentationWithActivitySource.cs +++ b/examples/Console/InstrumentationWithActivitySource.cs @@ -14,16 +14,10 @@ // limitations under the License. // -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 { diff --git a/examples/Console/TestHttpClient.cs b/examples/Console/TestHttpClient.cs index ba122c5f0..c9bd2eadb 100644 --- a/examples/Console/TestHttpClient.cs +++ b/examples/Console/TestHttpClient.cs @@ -14,7 +14,6 @@ // limitations under the License. // using System.Diagnostics; -using System.Net.Http; using OpenTelemetry; using OpenTelemetry.Resources; using OpenTelemetry.Trace; diff --git a/examples/Console/TestInMemoryExporter.cs b/examples/Console/TestInMemoryExporter.cs index 5cfbe3274..acb4ecfa1 100644 --- a/examples/Console/TestInMemoryExporter.cs +++ b/examples/Console/TestInMemoryExporter.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry; using OpenTelemetry.Resources; diff --git a/examples/Console/TestLogs.cs b/examples/Console/TestLogs.cs index 809dda82e..a805c4447 100644 --- a/examples/Console/TestLogs.cs +++ b/examples/Console/TestLogs.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using Microsoft.Extensions.Logging; using OpenTelemetry.Logs; diff --git a/examples/Console/TestMetrics.cs b/examples/Console/TestMetrics.cs index 78ee9cbed..1aafd8738 100644 --- a/examples/Console/TestMetrics.cs +++ b/examples/Console/TestMetrics.cs @@ -14,11 +14,8 @@ // limitations under the License. // -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; diff --git a/examples/Console/TestOtlpExporter.cs b/examples/Console/TestOtlpExporter.cs index f5417e77c..53e6b1a72 100644 --- a/examples/Console/TestOtlpExporter.cs +++ b/examples/Console/TestOtlpExporter.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry; using OpenTelemetry.Exporter; using OpenTelemetry.Resources; diff --git a/examples/Console/TestPrometheusExporter.cs b/examples/Console/TestPrometheusExporter.cs index befb0e5d4..170b2c241 100644 --- a/examples/Console/TestPrometheusExporter.cs +++ b/examples/Console/TestPrometheusExporter.cs @@ -14,12 +14,8 @@ // limitations under the License. // -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; diff --git a/examples/Console/TestZPagesExporter.cs b/examples/Console/TestZPagesExporter.cs index 9d80e361f..cf1128be0 100644 --- a/examples/Console/TestZPagesExporter.cs +++ b/examples/Console/TestZPagesExporter.cs @@ -15,7 +15,6 @@ // using System.Diagnostics; -using System.Threading; using OpenTelemetry; using OpenTelemetry.Exporter.ZPages; using OpenTelemetry.Trace; diff --git a/examples/Console/TestZipkinExporter.cs b/examples/Console/TestZipkinExporter.cs index 0f6bbce22..94d3a4495 100644 --- a/examples/Console/TestZipkinExporter.cs +++ b/examples/Console/TestZipkinExporter.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry; using OpenTelemetry.Resources; using OpenTelemetry.Trace; diff --git a/examples/GrpcService/Program.cs b/examples/GrpcService/Program.cs index 5207d243c..f70331e24 100644 --- a/examples/GrpcService/Program.cs +++ b/examples/GrpcService/Program.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Hosting; - namespace Examples.GrpcService { public class Program diff --git a/examples/GrpcService/Services/GreeterService.cs b/examples/GrpcService/Services/GreeterService.cs index e3cebe619..038b7b38a 100644 --- a/examples/GrpcService/Services/GreeterService.cs +++ b/examples/GrpcService/Services/GreeterService.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System.Threading.Tasks; using Grpc.Core; -using Microsoft.Extensions.Logging; namespace Examples.GrpcService { diff --git a/examples/GrpcService/Startup.cs b/examples/GrpcService/Startup.cs index 4df07a261..2c875eae0 100644 --- a/examples/GrpcService/Startup.cs +++ b/examples/GrpcService/Startup.cs @@ -14,13 +14,6 @@ // limitations under the License. // -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; diff --git a/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs b/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs index cad83f58f..1d84b1b08 100644 --- a/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs +++ b/examples/MicroserviceExample/Utils/Messaging/MessageReceiver.cs @@ -14,12 +14,8 @@ // limitations under the License. // -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; diff --git a/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs b/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs index 81c55f464..96ee49017 100644 --- a/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs +++ b/examples/MicroserviceExample/Utils/Messaging/MessageSender.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Text; using Microsoft.Extensions.Logging; diff --git a/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs b/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs index 6d1448f36..69f19cf5e 100644 --- a/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs +++ b/examples/MicroserviceExample/Utils/Messaging/RabbitMqHelper.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using RabbitMQ.Client; using RabbitMQ.Client.Events; diff --git a/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs b/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs index 5da56cb0d..304824d48 100644 --- a/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs +++ b/examples/MicroserviceExample/WebApi/Controllers/SendMessageController.cs @@ -15,7 +15,6 @@ // using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; using Utils.Messaging; namespace WebApi.Controllers diff --git a/examples/MicroserviceExample/WebApi/Program.cs b/examples/MicroserviceExample/WebApi/Program.cs index b3c372e04..d13e10217 100644 --- a/examples/MicroserviceExample/WebApi/Program.cs +++ b/examples/MicroserviceExample/WebApi/Program.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Hosting; - namespace WebApi { public class Program diff --git a/examples/MicroserviceExample/WebApi/Startup.cs b/examples/MicroserviceExample/WebApi/Startup.cs index 8a3fb88d0..90e667833 100644 --- a/examples/MicroserviceExample/WebApi/Startup.cs +++ b/examples/MicroserviceExample/WebApi/Startup.cs @@ -14,12 +14,6 @@ // limitations under the License. // -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; diff --git a/examples/MicroserviceExample/WorkerService/Program.cs b/examples/MicroserviceExample/WorkerService/Program.cs index 10add6ae1..665265ced 100644 --- a/examples/MicroserviceExample/WorkerService/Program.cs +++ b/examples/MicroserviceExample/WorkerService/Program.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; using OpenTelemetry; using OpenTelemetry.Trace; using Utils.Messaging; diff --git a/examples/MicroserviceExample/WorkerService/Worker.cs b/examples/MicroserviceExample/WorkerService/Worker.cs index 98032a498..73fb96cf2 100644 --- a/examples/MicroserviceExample/WorkerService/Worker.cs +++ b/examples/MicroserviceExample/WorkerService/Worker.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Hosting; using Utils.Messaging; namespace WorkerService diff --git a/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs index fc445fc04..13ca0a7d4 100644 --- a/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpGrpcExporterBenchmarks.cs @@ -16,9 +16,7 @@ extern alias OpenTelemetryProtocol; -using System; using System.Diagnostics; -using System.Threading; using BenchmarkDotNet.Attributes; using Benchmarks.Helper; using Grpc.Core; diff --git a/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs b/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs index 8f5004a3b..a216c3000 100644 --- a/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/OtlpHttpExporterBenchmarks.cs @@ -16,9 +16,7 @@ extern alias OpenTelemetryProtocol; -using System; using System.Diagnostics; -using System.IO; using BenchmarkDotNet.Attributes; using Benchmarks.Helper; using OpenTelemetry; diff --git a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs index c08d069bb..1f94b555b 100644 --- a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs +++ b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using System.Diagnostics.Metrics; using BenchmarkDotNet.Attributes; using OpenTelemetry; diff --git a/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs b/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs index fc5ca32ef..7ec95b46e 100644 --- a/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs +++ b/test/Benchmarks/Exporter/ZipkinExporterBenchmarks.cs @@ -16,9 +16,7 @@ extern alias Zipkin; -using System; using System.Diagnostics; -using System.IO; using BenchmarkDotNet.Attributes; using Benchmarks.Helper; using OpenTelemetry; diff --git a/test/Benchmarks/Helper/ActivityHelper.cs b/test/Benchmarks/Helper/ActivityHelper.cs index 17bab186d..2d453ed3f 100644 --- a/test/Benchmarks/Helper/ActivityHelper.cs +++ b/test/Benchmarks/Helper/ActivityHelper.cs @@ -14,10 +14,7 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; namespace Benchmarks.Helper { diff --git a/test/Benchmarks/Instrumentation/DiagnosticSourceSubscriberBenchmark.cs b/test/Benchmarks/Instrumentation/DiagnosticSourceSubscriberBenchmark.cs index 491002032..ab63af387 100644 --- a/test/Benchmarks/Instrumentation/DiagnosticSourceSubscriberBenchmark.cs +++ b/test/Benchmarks/Instrumentation/DiagnosticSourceSubscriberBenchmark.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using BenchmarkDotNet.Attributes; using OpenTelemetry.Instrumentation; diff --git a/test/Benchmarks/Instrumentation/InstrumentedHttpClientBenchmark.cs b/test/Benchmarks/Instrumentation/InstrumentedHttpClientBenchmark.cs index 81579a995..c313d3af0 100644 --- a/test/Benchmarks/Instrumentation/InstrumentedHttpClientBenchmark.cs +++ b/test/Benchmarks/Instrumentation/InstrumentedHttpClientBenchmark.cs @@ -14,10 +14,8 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Net.Http; -using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using OpenTelemetry; using OpenTelemetry.Resources; diff --git a/test/Benchmarks/Instrumentation/UninstrumentedHttpClientBenchmark.cs b/test/Benchmarks/Instrumentation/UninstrumentedHttpClientBenchmark.cs index 3649e77ec..31ec0115b 100644 --- a/test/Benchmarks/Instrumentation/UninstrumentedHttpClientBenchmark.cs +++ b/test/Benchmarks/Instrumentation/UninstrumentedHttpClientBenchmark.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System; using System.Net.Http; -using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using OpenTelemetry.Tests; diff --git a/test/Benchmarks/Logs/LogScopeBenchmarks.cs b/test/Benchmarks/Logs/LogScopeBenchmarks.cs index 9cc2347d6..c33b2e0b8 100644 --- a/test/Benchmarks/Logs/LogScopeBenchmarks.cs +++ b/test/Benchmarks/Logs/LogScopeBenchmarks.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using BenchmarkDotNet.Attributes; using Microsoft.Extensions.Logging; diff --git a/test/Benchmarks/Metrics/HistogramBenchmarks.cs b/test/Benchmarks/Metrics/HistogramBenchmarks.cs index 1b88fdd53..4443f9f77 100644 --- a/test/Benchmarks/Metrics/HistogramBenchmarks.cs +++ b/test/Benchmarks/Metrics/HistogramBenchmarks.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; using BenchmarkDotNet.Attributes; diff --git a/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs b/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs index 9b2cc59b7..e04f177ce 100644 --- a/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricCollectBenchmarks.cs @@ -14,11 +14,7 @@ // limitations under the License. // -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; diff --git a/test/Benchmarks/Metrics/MetricsBenchmarks.cs b/test/Benchmarks/Metrics/MetricsBenchmarks.cs index e9fd3f6d4..50ec54d66 100644 --- a/test/Benchmarks/Metrics/MetricsBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricsBenchmarks.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; using BenchmarkDotNet.Attributes; diff --git a/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs b/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs index 7eeba352f..b0fd72392 100644 --- a/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricsViewBenchmarks.cs @@ -14,11 +14,8 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; -using System.Threading; using BenchmarkDotNet.Attributes; using OpenTelemetry; using OpenTelemetry.Metrics; diff --git a/test/Benchmarks/TestExporter.cs b/test/Benchmarks/TestExporter.cs index a4f4d9427..ae2336cad 100644 --- a/test/Benchmarks/TestExporter.cs +++ b/test/Benchmarks/TestExporter.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Tests { internal class TestExporter : BaseExporter diff --git a/test/Benchmarks/Trace/SamplerBenchmarks.cs b/test/Benchmarks/Trace/SamplerBenchmarks.cs index d49a9322e..53b011b07 100644 --- a/test/Benchmarks/Trace/SamplerBenchmarks.cs +++ b/test/Benchmarks/Trace/SamplerBenchmarks.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using BenchmarkDotNet.Attributes; using OpenTelemetry; diff --git a/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs b/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs index 004bb3aba..616252da3 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/DummyProcessor.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using OpenTelemetry; using OpenTelemetry.Logs; namespace OpenTelemetry.Tests.Stress; diff --git a/test/OpenTelemetry.Tests.Stress.Logs/Program.cs b/test/OpenTelemetry.Tests.Stress.Logs/Program.cs index 00a51da2a..8efc9695a 100644 --- a/test/OpenTelemetry.Tests.Stress.Logs/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Logs/Program.cs @@ -16,7 +16,6 @@ using System.Runtime.CompilerServices; using Microsoft.Extensions.Logging; -using OpenTelemetry.Logs; namespace OpenTelemetry.Tests.Stress; diff --git a/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs b/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs index c0788e0b1..3129dfaa8 100644 --- a/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs +++ b/test/OpenTelemetry.Tests.Stress.Metrics/Program.cs @@ -14,10 +14,8 @@ // limitations under the License. // -using System; using System.Diagnostics.Metrics; using System.Runtime.CompilerServices; -using System.Threading; using OpenTelemetry.Metrics; namespace OpenTelemetry.Tests.Stress; diff --git a/test/OpenTelemetry.Tests.Stress/Skeleton.cs b/test/OpenTelemetry.Tests.Stress/Skeleton.cs index c69e2543a..6c80bd0fe 100644 --- a/test/OpenTelemetry.Tests.Stress/Skeleton.cs +++ b/test/OpenTelemetry.Tests.Stress/Skeleton.cs @@ -14,13 +14,9 @@ // limitations under the License. // -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; diff --git a/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs b/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs index d53e1434e..e7c8c1a19 100644 --- a/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs +++ b/test/TestApp.AspNetCore/Controllers/ChildActivityController.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using System.Diagnostics; using Microsoft.AspNetCore.Mvc; using OpenTelemetry; diff --git a/test/TestApp.AspNetCore/Controllers/ValuesController.cs b/test/TestApp.AspNetCore/Controllers/ValuesController.cs index d4cb214df..12154514e 100644 --- a/test/TestApp.AspNetCore/Controllers/ValuesController.cs +++ b/test/TestApp.AspNetCore/Controllers/ValuesController.cs @@ -13,7 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. // -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; namespace TestApp.AspNetCore.Controllers