From 36f7289055f587c539e302d991a095081b43a1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Mon, 24 Jun 2024 18:27:49 +0200 Subject: [PATCH] [repo] ImplicitUsings - part 2 (#1923) --- src/OpenTelemetry.Exporter.Geneva/AssemblyInfo.cs | 1 - .../EventNameExportMode.cs | 2 -- .../GenevaExporterHelperExtensions.cs | 1 - .../GenevaExporterOptions.cs | 2 -- src/OpenTelemetry.Exporter.Geneva/GenevaLogExporter.cs | 1 - .../GenevaLoggingExtensions.cs | 1 - .../GenevaTraceExporter.cs | 1 - .../Internal/ConnectionStringBuilder.cs | 2 -- .../Internal/ExporterEventSource.cs | 1 - .../Internal/ReentrantExportProcessor.cs | 1 - .../Internal/TableNameSerializer.cs | 2 -- .../Metrics/GenevaMetricExporter.cs | 1 - .../Metrics/GenevaMetricExporterExtensions.cs | 1 - .../Metrics/GenevaMetricExporterOptions.cs | 2 -- .../Metrics/MetricSerializer.cs | 1 - .../Metrics/OtlpProtobuf/OtlpProtobufMetricExporter.cs | 2 -- .../Metrics/OtlpProtobuf/OtlpProtobufSerializer.cs | 2 -- .../Metrics/OtlpProtobuf/ProtobufSerializerHelper.cs | 1 - .../Metrics/OtlpProtobuf/TimestampHelpers.cs | 2 -- .../Metrics/TlvMetricExporter.cs | 2 -- .../Metrics/Transport/IMetricDataTransport.cs | 2 -- .../Metrics/Transport/MetricEtwDataTransport.cs | 1 - .../Metrics/Transport/MetricUnixDataTransport.cs | 2 +- .../MsgPackExporter/MessagePackSerializer.cs | 2 -- .../MsgPackExporter/MsgPackExporter.cs | 2 -- .../MsgPackExporter/MsgPackLogExporter.cs | 3 --- .../MsgPackExporter/MsgPackTraceExporter.cs | 3 --- .../MsgPackExporter/Transport/EtwDataTransport.cs | 1 - .../Transport/UnixDomainSocketDataTransport.cs | 1 - .../Transport/UnixDomainSocketEndPoint.cs | 1 - .../OpenTelemetry.Exporter.Geneva.csproj | 1 + .../TLDExporter/JsonSerializer.cs | 3 --- .../TLDExporter/TldExporter.cs | 2 -- .../TLDExporter/TldLogExporter.cs | 3 --- .../TLDExporter/TldTraceExporter.cs | 3 --- .../TLDExporter/UncheckedASCIIEncoding.cs | 1 - .../InfluxDBExporterExtensions.cs | 1 - .../InfluxDBMetricsExporter.cs | 1 - .../InfluxDBMetricsExporterOptions.cs | 1 - .../OpenTelemetry.Exporter.InfluxDB.csproj | 1 + .../PointDataExtensions.cs | 1 - .../Implementation/InstanaExporterEventSource.cs | 1 - .../Implementation/InstanaSpan.cs | 2 -- .../Implementation/InstanaSpanFactory.cs | 2 -- .../Implementation/InstanaSpanSerializer.cs | 4 ---- .../Implementation/Processors/ActivityProcessorBase.cs | 2 -- .../Processors/DefaultActivityProcessor.cs | 2 -- .../Processors/ErrorActivityProcessor.cs | 1 - .../Processors/EventsActivityProcessor.cs | 2 -- .../Implementation/Processors/IActivityProcessor.cs | 2 -- .../Implementation/Processors/TagsActivityProcessor.cs | 2 -- .../Implementation/SpanSender.cs | 1 - .../Implementation/Transport.cs | 5 ++--- src/OpenTelemetry.Exporter.Instana/InstanaExporter.cs | 3 --- .../InstanaExporterHelper.cs | 1 - .../OpenTelemetry.Exporter.Instana.csproj | 1 + .../TracerProviderBuilderExtensions.cs | 1 - .../OpenTelemetry.Exporter.OneCollector.csproj | 2 +- .../Implementation/ActivityExtensions.cs | 2 -- .../Implementation/ExporterStackdriverEventSource.cs | 1 - .../Implementation/GoogleCloudResourceUtils.cs | 2 -- .../Implementation/ResourceExtensions.cs | 1 - .../Implementation/StackdriverStatsConfiguration.cs | 1 - .../OpenTelemetry.Exporter.Stackdriver.csproj | 1 + .../StackdriverTraceExporter.cs | 2 -- .../Utils/CommonUtils.cs | 1 - src/OpenTelemetry.Extensions.AWS/AWSXRayEventSource.cs | 1 - src/OpenTelemetry.Extensions.AWS/AWSXRayIdGenerator.cs | 2 -- .../AWSXRayIdGenerator.net6.cs | 1 - .../OpenTelemetry.Extensions.AWS.csproj | 1 + .../Trace/AWSXRayPropagator.cs | 3 --- .../TracerProviderBuilderExtensions.cs | 2 +- .../Internal/TraceEnrichmentActions.cs | 4 ---- .../Internal/TraceEnrichmentProcessor.cs | 2 -- .../OpenTelemetry.Extensions.Enrichment.csproj | 1 + .../TraceEnrichmentProviderBuilderExtensions.cs | 1 - .../TraceEnrichmentServiceCollectionExtensions.cs | 2 -- src/OpenTelemetry.Extensions/AssemblyInfo.cs | 2 -- .../Internal/ActivityEventAttachingLogProcessor.cs | 1 - .../Internal/DefaultLogStateConverter.cs | 1 - .../Internal/OpenTelemetryExtensionsEventSource.cs | 1 - .../Logs/LogToActivityEventConversionOptions.cs | 2 -- .../Logs/OpenTelemetryLoggingExtensions.cs | 1 - .../OpenTelemetry.Extensions.csproj | 1 + .../Trace/AutoFlushActivityProcessor.cs | 2 -- .../TracerProviderBuilderExtensions.cs | 2 -- ...Telemetry.Instrumentation.StackExchangeRedis.csproj | 2 +- .../AssemblyInfo.cs | 1 - ...OpenTelemetry.PersistentStorage.Abstractions.csproj | 1 + .../PersistentBlob.cs | 1 - .../PersistentBlobProvider.cs | 3 --- .../PersistentStorageAbstractionsEventSource.cs | 1 - .../DirectorySizeTracker.cs | 4 ---- .../FileBlob.cs | 2 -- .../FileBlobProvider.cs | 10 +++------- .../OpenTelemetry.PersistentStorage.FileSystem.csproj | 1 + .../PersistentStorageEventSource.cs | 1 - .../PersistentStorageHelper.cs | 3 --- .../Exporter/LogExporterBenchmarks.cs | 1 - .../Exporter/MetricExporterBenchmarks.cs | 3 --- .../Exporter/SerializationBenchmarks.cs | 1 - .../Exporter/TLDLogExporterBenchmarks.cs | 1 - .../Exporter/TLDTraceExporterBenchmarks.cs | 1 - .../Exporter/TraceExporterBenchmarks.cs | 1 - .../OpenTelemetry.Exporter.Geneva.Benchmarks.csproj | 1 + .../DummyServer.cs | 3 --- .../OpenTelemetry.Exporter.Geneva.Stress.csproj | 1 + test/OpenTelemetry.Exporter.Geneva.Stress/Program.cs | 5 ----- .../ConnectionStringBuilderTests.cs | 1 - .../GenevaLogExporterTests.cs | 5 ----- .../GenevaMetricExporterOptionsTests.cs | 2 -- .../GenevaMetricExporterTests.cs | 5 ----- .../GenevaTraceExporterTests.cs | 5 ----- .../JsonSerializerTests.cs | 2 -- .../LogSerializationTests.cs | 4 ---- .../MessagePackSerializerTests.cs | 2 -- .../OpenTelemetry.Exporter.Geneva.Tests.csproj | 1 + .../OtlpProtobufMetricExporterTests.cs | 3 --- .../TableNameSerializerTests.cs | 1 - .../UnixDomainSocketDataTransportTests.cs | 2 -- .../UnixDomainSocketEndPointTests.cs | 1 - .../OpenTelemetry.Exporter.InfluxDB.Tests.csproj | 3 ++- .../InstanaSpanSerializerTests.cs | 3 --- .../InstanaSpanTest.cs | 2 -- .../OpenTelemetry.Exporter.Instana.Tests.csproj | 1 + .../Processors/DefaultActivityProcessorTests.cs | 1 - .../Processors/ErrorActivityProcessorTests.cs | 1 - .../Processors/EventsActivityProcessorTests.cs | 3 --- .../Processors/TagsActivityProcessorTests.cs | 1 - .../TestActivityProcessor.cs | 2 -- .../TestInstanaExporterHelper.cs | 1 - .../TestSpanSender.cs | 1 - ...enTelemetry.Exporter.OneCollector.Benchmarks.csproj | 2 +- .../OpenTelemetry.Exporter.OneCollector.Tests.csproj | 2 +- .../ActivityExtensionsTest.cs | 2 -- .../StackdriverStatsConfigurationTests.cs | 1 - .../OpenTelemetry.Exporter.Stackdriver.Tests.csproj | 1 + .../ResourceExtensionsTests.cs | 1 - .../StackdriverExporterTests.cs | 3 --- .../TestActivityProcessor.cs | 1 - .../TestTraceServiceClient.cs | 1 - .../AWSXRayIdGeneratorTests.cs | 1 - .../OpenTelemetry.Extensions.AWS.Tests.csproj | 1 + .../Trace/AWSXRayPropagatorTests.cs | 2 -- .../OpenTelemetry.Extensions.Enrichment.Tests.csproj | 1 + ...OpenTelemetryEnrichmentProviderBuilderExtensions.cs | 2 -- ...emetryEnrichmentServiceCollectionExtensionsTests.cs | 3 --- .../ActivityEventAttachingLogProcessorTests.cs | 3 --- .../OpenTelemetry.Extensions.Tests.csproj | 1 + .../Trace/AutoFlushActivityProcessorTests.cs | 1 - ...lemetry.PersistentStorage.Abstractions.Tests.csproj | 1 + .../DirectorySizeTrackerTests.cs | 1 - .../FileBlobProviderTests.cs | 3 --- .../FileBlobTests.cs | 3 --- ...Telemetry.PersistentStorage.FileSystem.Tests.csproj | 1 + test/Shared/TestActivityProcessor.cs | 2 ++ 156 files changed, 34 insertions(+), 250 deletions(-) diff --git a/src/OpenTelemetry.Exporter.Geneva/AssemblyInfo.cs b/src/OpenTelemetry.Exporter.Geneva/AssemblyInfo.cs index 9c892bb358..207e66dd83 100644 --- a/src/OpenTelemetry.Exporter.Geneva/AssemblyInfo.cs +++ b/src/OpenTelemetry.Exporter.Geneva/AssemblyInfo.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Runtime.CompilerServices; [assembly: CLSCompliant(false)] diff --git a/src/OpenTelemetry.Exporter.Geneva/EventNameExportMode.cs b/src/OpenTelemetry.Exporter.Geneva/EventNameExportMode.cs index 12f768b1c4..3ef68a4892 100644 --- a/src/OpenTelemetry.Exporter.Geneva/EventNameExportMode.cs +++ b/src/OpenTelemetry.Exporter.Geneva/EventNameExportMode.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; - namespace OpenTelemetry.Exporter.Geneva; [Flags] diff --git a/src/OpenTelemetry.Exporter.Geneva/GenevaExporterHelperExtensions.cs b/src/OpenTelemetry.Exporter.Geneva/GenevaExporterHelperExtensions.cs index 74b1a0113f..0fe7872da5 100644 --- a/src/OpenTelemetry.Exporter.Geneva/GenevaExporterHelperExtensions.cs +++ b/src/OpenTelemetry.Exporter.Geneva/GenevaExporterHelperExtensions.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; diff --git a/src/OpenTelemetry.Exporter.Geneva/GenevaExporterOptions.cs b/src/OpenTelemetry.Exporter.Geneva/GenevaExporterOptions.cs index 1f9bfa0aaf..c9e87ef33c 100644 --- a/src/OpenTelemetry.Exporter.Geneva/GenevaExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Geneva/GenevaExporterOptions.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Text; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/GenevaLogExporter.cs b/src/OpenTelemetry.Exporter.Geneva/GenevaLogExporter.cs index 723817929e..1e3ef76dbf 100644 --- a/src/OpenTelemetry.Exporter.Geneva/GenevaLogExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/GenevaLogExporter.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Runtime.InteropServices; using OpenTelemetry.Exporter.Geneva.TldExporter; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/GenevaLoggingExtensions.cs b/src/OpenTelemetry.Exporter.Geneva/GenevaLoggingExtensions.cs index 6d950f2180..4507997ce0 100644 --- a/src/OpenTelemetry.Exporter.Geneva/GenevaLoggingExtensions.cs +++ b/src/OpenTelemetry.Exporter.Geneva/GenevaLoggingExtensions.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; diff --git a/src/OpenTelemetry.Exporter.Geneva/GenevaTraceExporter.cs b/src/OpenTelemetry.Exporter.Geneva/GenevaTraceExporter.cs index d79a064bc5..309cb7b87c 100644 --- a/src/OpenTelemetry.Exporter.Geneva/GenevaTraceExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/GenevaTraceExporter.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics; using System.Runtime.InteropServices; using OpenTelemetry.Exporter.Geneva.TldExporter; diff --git a/src/OpenTelemetry.Exporter.Geneva/Internal/ConnectionStringBuilder.cs b/src/OpenTelemetry.Exporter.Geneva/Internal/ConnectionStringBuilder.cs index b007e5f4ab..9bf497c319 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Internal/ConnectionStringBuilder.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Internal/ConnectionStringBuilder.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Globalization; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/Internal/ExporterEventSource.cs b/src/OpenTelemetry.Exporter.Geneva/Internal/ExporterEventSource.cs index e96b0f9b4b..9da11fafbb 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Internal/ExporterEventSource.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Internal/ExporterEventSource.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics.Tracing; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/Internal/ReentrantExportProcessor.cs b/src/OpenTelemetry.Exporter.Geneva/Internal/ReentrantExportProcessor.cs index b9575f2a8f..44e1686c11 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Internal/ReentrantExportProcessor.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Internal/ReentrantExportProcessor.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Linq.Expressions; using System.Reflection; diff --git a/src/OpenTelemetry.Exporter.Geneva/Internal/TableNameSerializer.cs b/src/OpenTelemetry.Exporter.Geneva/Internal/TableNameSerializer.cs index c23ff0ee9f..89ad5f8195 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Internal/TableNameSerializer.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Internal/TableNameSerializer.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporter.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporter.cs index b2fff46bf6..b596e592ab 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporter.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Reflection; using System.Text.RegularExpressions; using OpenTelemetry.Exporter.Geneva.Metrics; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterExtensions.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterExtensions.cs index 545adff15b..f6202edf78 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterExtensions.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterExtensions.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterOptions.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterOptions.cs index c2df90cc37..36e13d2ef3 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/GenevaMetricExporterOptions.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Globalization; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/MetricSerializer.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/MetricSerializer.cs index e0355bae34..a5e38553ea 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/MetricSerializer.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/MetricSerializer.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufMetricExporter.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufMetricExporter.cs index 54d3b14cdb..b5836f3d99 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufMetricExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufMetricExporter.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; using OpenTelemetry.Metrics; using OpenTelemetry.Resources; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufSerializer.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufSerializer.cs index 9f1347bc3f..40019f14ff 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufSerializer.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/OtlpProtobufSerializer.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Globalization; using OpenTelemetry.Metrics; using OpenTelemetry.Resources; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/ProtobufSerializerHelper.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/ProtobufSerializerHelper.cs index f9eb43ddc1..74f06185fb 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/ProtobufSerializerHelper.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/ProtobufSerializerHelper.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Buffers.Binary; using System.Runtime.CompilerServices; using System.Text; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/TimestampHelpers.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/TimestampHelpers.cs index 92f8cc395e..68c23b28a9 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/TimestampHelpers.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/OtlpProtobuf/TimestampHelpers.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; - namespace OpenTelemetry.Exporter.Geneva; /// diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/TlvMetricExporter.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/TlvMetricExporter.cs index 336115979c..8d05817fd5 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/TlvMetricExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/TlvMetricExporter.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/IMetricDataTransport.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/IMetricDataTransport.cs index 8b2be9ecee..1c40c4303d 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/IMetricDataTransport.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/IMetricDataTransport.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; - namespace OpenTelemetry.Exporter.Geneva; internal interface IMetricDataTransport : IDisposable diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricEtwDataTransport.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricEtwDataTransport.cs index e3a0065df3..1c7fa8770e 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricEtwDataTransport.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricEtwDataTransport.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; #endif diff --git a/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricUnixDataTransport.cs b/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricUnixDataTransport.cs index 863a6f5542..799e8bf7d2 100644 --- a/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricUnixDataTransport.cs +++ b/src/OpenTelemetry.Exporter.Geneva/Metrics/Transport/MetricUnixDataTransport.cs @@ -39,6 +39,6 @@ public void Dispose() public void SendOtlpProtobufEvent(byte[] body, int size) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } } diff --git a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MessagePackSerializer.cs b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MessagePackSerializer.cs index 62424f5693..21ed99dd71 100644 --- a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MessagePackSerializer.cs +++ b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MessagePackSerializer.cs @@ -1,11 +1,9 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; #if NET6_0_OR_GREATER using System.Buffers.Binary; #endif -using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using System.Text; diff --git a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackExporter.cs b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackExporter.cs index 581a07dcd3..7a6ed20f52 100644 --- a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackExporter.cs @@ -1,11 +1,9 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; #if NET8_0_OR_GREATER using System.Collections.Frozen; #endif -using System.Collections.Generic; namespace OpenTelemetry.Exporter.Geneva; diff --git a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackLogExporter.cs b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackLogExporter.cs index 2cbb03dcd5..0a143cd39a 100644 --- a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackLogExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackLogExporter.cs @@ -1,15 +1,12 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; #if NET8_0_OR_GREATER using System.Collections.Frozen; #endif -using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Threading; using Microsoft.Extensions.Logging; using OpenTelemetry.Internal; using OpenTelemetry.Logs; diff --git a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackTraceExporter.cs b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackTraceExporter.cs index c205c8a0c2..bddd2ba478 100644 --- a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackTraceExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackTraceExporter.cs @@ -1,15 +1,12 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; #if NET8_0_OR_GREATER using System.Collections.Frozen; #endif -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; -using System.Threading; namespace OpenTelemetry.Exporter.Geneva; diff --git a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/EtwDataTransport.cs b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/EtwDataTransport.cs index b17403699a..199818de29 100644 --- a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/EtwDataTransport.cs +++ b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/EtwDataTransport.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; #if NET6_0_OR_GREATER using System.Diagnostics.CodeAnalysis; #endif diff --git a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketDataTransport.cs b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketDataTransport.cs index 024380127c..c7424a1023 100644 --- a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketDataTransport.cs +++ b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketDataTransport.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Net; using System.Net.Sockets; diff --git a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketEndPoint.cs b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketEndPoint.cs index ef00b48764..7178ea45fe 100644 --- a/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketEndPoint.cs +++ b/src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/Transport/UnixDomainSocketEndPoint.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Net; using System.Net.Sockets; using System.Text; diff --git a/src/OpenTelemetry.Exporter.Geneva/OpenTelemetry.Exporter.Geneva.csproj b/src/OpenTelemetry.Exporter.Geneva/OpenTelemetry.Exporter.Geneva.csproj index 0e28e227b8..11c4d04c9e 100644 --- a/src/OpenTelemetry.Exporter.Geneva/OpenTelemetry.Exporter.Geneva.csproj +++ b/src/OpenTelemetry.Exporter.Geneva/OpenTelemetry.Exporter.Geneva.csproj @@ -12,6 +12,7 @@ Exporter.Geneva- 1.9.0 disable + enable diff --git a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/JsonSerializer.cs b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/JsonSerializer.cs index ca5f4e6d96..06aaa294d8 100644 --- a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/JsonSerializer.cs +++ b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/JsonSerializer.cs @@ -1,12 +1,9 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using System.Text; -using System.Threading; namespace OpenTelemetry.Exporter.Geneva.TldExporter; diff --git a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldExporter.cs b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldExporter.cs index 4891c5266e..a7f6f3ba33 100644 --- a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldExporter.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using System.Text; diff --git a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldLogExporter.cs b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldLogExporter.cs index 318cb02092..2eeab5c30d 100644 --- a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldLogExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldLogExporter.cs @@ -1,12 +1,9 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using System.Text; -using System.Threading; using Microsoft.Extensions.Logging; using OpenTelemetry.Exporter.Geneva.External; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs index ce63e57fab..6294d96056 100644 --- a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs +++ b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/TldTraceExporter.cs @@ -1,12 +1,9 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Text; -using System.Threading; using OpenTelemetry.Exporter.Geneva.External; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/UncheckedASCIIEncoding.cs b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/UncheckedASCIIEncoding.cs index c7fdbb9967..c36b6c1059 100644 --- a/src/OpenTelemetry.Exporter.Geneva/TLDExporter/UncheckedASCIIEncoding.cs +++ b/src/OpenTelemetry.Exporter.Geneva/TLDExporter/UncheckedASCIIEncoding.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Text; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBExporterExtensions.cs b/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBExporterExtensions.cs index dd461973be..6628e761bf 100644 --- a/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBExporterExtensions.cs +++ b/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBExporterExtensions.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using InfluxDB.Client; using OpenTelemetry.Exporter.InfluxDB; using OpenTelemetry.Trace; diff --git a/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporter.cs b/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporter.cs index 0b2e827783..651d360162 100644 --- a/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporter.cs +++ b/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporter.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using InfluxDB.Client; using InfluxDB.Client.Writes; using OpenTelemetry.Metrics; diff --git a/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporterOptions.cs b/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporterOptions.cs index 35448f01b3..f79c5aff89 100644 --- a/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporterOptions.cs +++ b/src/OpenTelemetry.Exporter.InfluxDB/InfluxDBMetricsExporterOptions.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using OpenTelemetry.Internal; namespace OpenTelemetry.Exporter.InfluxDB; diff --git a/src/OpenTelemetry.Exporter.InfluxDB/OpenTelemetry.Exporter.InfluxDB.csproj b/src/OpenTelemetry.Exporter.InfluxDB/OpenTelemetry.Exporter.InfluxDB.csproj index f1c7da1493..ca53d70296 100644 --- a/src/OpenTelemetry.Exporter.InfluxDB/OpenTelemetry.Exporter.InfluxDB.csproj +++ b/src/OpenTelemetry.Exporter.InfluxDB/OpenTelemetry.Exporter.InfluxDB.csproj @@ -7,6 +7,7 @@ $(NetMinimumSupportedVersion);$(NetStandardMinimumSupportedVersion) Exporter.InfluxDB- + enable $(NetMinimumSupportedVersion) $(TargetFrameworks);net48;net472;net471;net47;net462 - true + enable + enable diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanSerializerTests.cs b/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanSerializerTests.cs index bb56142871..1b4bc7d42a 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanSerializerTests.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanSerializerTests.cs @@ -1,9 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using OpenTelemetry.Exporter.Instana.Implementation; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanTest.cs b/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanTest.cs index 3e426a591a..aa2a0df58d 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanTest.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/InstanaSpanTest.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/OpenTelemetry.Exporter.Instana.Tests.csproj b/test/OpenTelemetry.Exporter.Instana.Tests/OpenTelemetry.Exporter.Instana.Tests.csproj index 689b764d11..09fb327a2c 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/OpenTelemetry.Exporter.Instana.Tests.csproj +++ b/test/OpenTelemetry.Exporter.Instana.Tests/OpenTelemetry.Exporter.Instana.Tests.csproj @@ -5,6 +5,7 @@ $(TargetFrameworks);net462 true disable + enable diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/DefaultActivityProcessorTests.cs b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/DefaultActivityProcessorTests.cs index 6eaf8dca56..85ae5c3577 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/DefaultActivityProcessorTests.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/DefaultActivityProcessorTests.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; -using System.Threading.Tasks; using OpenTelemetry.Exporter.Instana.Implementation; using OpenTelemetry.Exporter.Instana.Implementation.Processors; using Xunit; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/ErrorActivityProcessorTests.cs b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/ErrorActivityProcessorTests.cs index a27a7f1c52..18c37f236a 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/ErrorActivityProcessorTests.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/ErrorActivityProcessorTests.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; -using System.Threading.Tasks; using OpenTelemetry.Exporter.Instana.Implementation; using OpenTelemetry.Exporter.Instana.Implementation.Processors; using Xunit; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/EventsActivityProcessorTests.cs b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/EventsActivityProcessorTests.cs index e9bfc68a48..7ed21412ca 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/EventsActivityProcessorTests.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/EventsActivityProcessorTests.cs @@ -3,10 +3,7 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Threading.Tasks; using OpenTelemetry.Exporter.Instana.Implementation; using OpenTelemetry.Exporter.Instana.Implementation.Processors; using Xunit; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/TagsActivityProcessorTests.cs b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/TagsActivityProcessorTests.cs index e1acfefb61..b70bc79bf6 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/Processors/TagsActivityProcessorTests.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/Processors/TagsActivityProcessorTests.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; -using System.Threading.Tasks; using OpenTelemetry.Exporter.Instana.Implementation; using OpenTelemetry.Exporter.Instana.Implementation.Processors; using Xunit; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/TestActivityProcessor.cs b/test/OpenTelemetry.Exporter.Instana.Tests/TestActivityProcessor.cs index da660e8c08..40f7ab44b4 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/TestActivityProcessor.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/TestActivityProcessor.cs @@ -1,9 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics; -using System.Threading.Tasks; using OpenTelemetry.Exporter.Instana.Implementation; using OpenTelemetry.Exporter.Instana.Implementation.Processors; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/TestInstanaExporterHelper.cs b/test/OpenTelemetry.Exporter.Instana.Tests/TestInstanaExporterHelper.cs index e6fb2fb69b..bf48310c1f 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/TestInstanaExporterHelper.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/TestInstanaExporterHelper.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry.Resources; diff --git a/test/OpenTelemetry.Exporter.Instana.Tests/TestSpanSender.cs b/test/OpenTelemetry.Exporter.Instana.Tests/TestSpanSender.cs index 054dea7235..33cd7f898e 100644 --- a/test/OpenTelemetry.Exporter.Instana.Tests/TestSpanSender.cs +++ b/test/OpenTelemetry.Exporter.Instana.Tests/TestSpanSender.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using OpenTelemetry.Exporter.Instana.Implementation; namespace OpenTelemetry.Exporter.Instana.Tests; diff --git a/test/OpenTelemetry.Exporter.OneCollector.Benchmarks/OpenTelemetry.Exporter.OneCollector.Benchmarks.csproj b/test/OpenTelemetry.Exporter.OneCollector.Benchmarks/OpenTelemetry.Exporter.OneCollector.Benchmarks.csproj index 81feba070e..d29a103e22 100644 --- a/test/OpenTelemetry.Exporter.OneCollector.Benchmarks/OpenTelemetry.Exporter.OneCollector.Benchmarks.csproj +++ b/test/OpenTelemetry.Exporter.OneCollector.Benchmarks/OpenTelemetry.Exporter.OneCollector.Benchmarks.csproj @@ -6,7 +6,7 @@ net7.0;net6.0 $(TargetFrameworks);net48;net472;net471;net47;net462 - true + enable diff --git a/test/OpenTelemetry.Exporter.OneCollector.Tests/OpenTelemetry.Exporter.OneCollector.Tests.csproj b/test/OpenTelemetry.Exporter.OneCollector.Tests/OpenTelemetry.Exporter.OneCollector.Tests.csproj index 7cf35b4e49..dc5b007108 100644 --- a/test/OpenTelemetry.Exporter.OneCollector.Tests/OpenTelemetry.Exporter.OneCollector.Tests.csproj +++ b/test/OpenTelemetry.Exporter.OneCollector.Tests/OpenTelemetry.Exporter.OneCollector.Tests.csproj @@ -5,7 +5,7 @@ $(SupportedNetTargets) $(TargetFrameworks);net48;net472;net471;net47;net462 - true + enable diff --git a/test/OpenTelemetry.Exporter.Stackdriver.Tests/ActivityExtensionsTest.cs b/test/OpenTelemetry.Exporter.Stackdriver.Tests/ActivityExtensionsTest.cs index 0efd380492..5e1b9a5f0b 100644 --- a/test/OpenTelemetry.Exporter.Stackdriver.Tests/ActivityExtensionsTest.cs +++ b/test/OpenTelemetry.Exporter.Stackdriver.Tests/ActivityExtensionsTest.cs @@ -1,9 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using OpenTelemetry.Exporter.Stackdriver.Implementation; using Xunit; diff --git a/test/OpenTelemetry.Exporter.Stackdriver.Tests/Implementation/StackdriverStatsConfigurationTests.cs b/test/OpenTelemetry.Exporter.Stackdriver.Tests/Implementation/StackdriverStatsConfigurationTests.cs index 32d7f56352..caaea64bc7 100644 --- a/test/OpenTelemetry.Exporter.Stackdriver.Tests/Implementation/StackdriverStatsConfigurationTests.cs +++ b/test/OpenTelemetry.Exporter.Stackdriver.Tests/Implementation/StackdriverStatsConfigurationTests.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using OpenTelemetry.Exporter.Stackdriver.Implementation; using Xunit; diff --git a/test/OpenTelemetry.Exporter.Stackdriver.Tests/OpenTelemetry.Exporter.Stackdriver.Tests.csproj b/test/OpenTelemetry.Exporter.Stackdriver.Tests/OpenTelemetry.Exporter.Stackdriver.Tests.csproj index ab94de47f5..0af211cf16 100644 --- a/test/OpenTelemetry.Exporter.Stackdriver.Tests/OpenTelemetry.Exporter.Stackdriver.Tests.csproj +++ b/test/OpenTelemetry.Exporter.Stackdriver.Tests/OpenTelemetry.Exporter.Stackdriver.Tests.csproj @@ -4,6 +4,7 @@ $(SupportedNetTargets) $(TargetFrameworks);net462 + enable diff --git a/test/OpenTelemetry.Exporter.Stackdriver.Tests/ResourceExtensionsTests.cs b/test/OpenTelemetry.Exporter.Stackdriver.Tests/ResourceExtensionsTests.cs index 651c69a009..8072d0aca7 100644 --- a/test/OpenTelemetry.Exporter.Stackdriver.Tests/ResourceExtensionsTests.cs +++ b/test/OpenTelemetry.Exporter.Stackdriver.Tests/ResourceExtensionsTests.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.Collections.Generic; using Google.Cloud.Trace.V2; using OpenTelemetry.Exporter.Stackdriver.Implementation; using OpenTelemetry.Resources; diff --git a/test/OpenTelemetry.Exporter.Stackdriver.Tests/StackdriverExporterTests.cs b/test/OpenTelemetry.Exporter.Stackdriver.Tests/StackdriverExporterTests.cs index 7c6a921d2c..854fb7bd0d 100644 --- a/test/OpenTelemetry.Exporter.Stackdriver.Tests/StackdriverExporterTests.cs +++ b/test/OpenTelemetry.Exporter.Stackdriver.Tests/StackdriverExporterTests.cs @@ -1,10 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using OpenTelemetry.Exporter.Stackdriver.Implementation; using OpenTelemetry.Resources; using OpenTelemetry.Trace; diff --git a/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestActivityProcessor.cs b/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestActivityProcessor.cs index 603aea8406..eab6437c06 100644 --- a/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestActivityProcessor.cs +++ b/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestActivityProcessor.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics; namespace OpenTelemetry.Exporter.Stackdriver.Tests; diff --git a/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestTraceServiceClient.cs b/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestTraceServiceClient.cs index c7122424ab..dd1aceb4a7 100644 --- a/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestTraceServiceClient.cs +++ b/test/OpenTelemetry.Exporter.Stackdriver.Tests/TestTraceServiceClient.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.Collections.Generic; using Google.Api.Gax.Grpc; using Google.Cloud.Trace.V2; using Grpc.Core; diff --git a/test/OpenTelemetry.Extensions.AWS.Tests/AWSXRayIdGeneratorTests.cs b/test/OpenTelemetry.Extensions.AWS.Tests/AWSXRayIdGeneratorTests.cs index bb4ec1bcd5..810a2d6b77 100644 --- a/test/OpenTelemetry.Extensions.AWS.Tests/AWSXRayIdGeneratorTests.cs +++ b/test/OpenTelemetry.Extensions.AWS.Tests/AWSXRayIdGeneratorTests.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics; using OpenTelemetry.Trace; using Xunit; diff --git a/test/OpenTelemetry.Extensions.AWS.Tests/OpenTelemetry.Extensions.AWS.Tests.csproj b/test/OpenTelemetry.Extensions.AWS.Tests/OpenTelemetry.Extensions.AWS.Tests.csproj index 68f248e657..5faa96d9c3 100644 --- a/test/OpenTelemetry.Extensions.AWS.Tests/OpenTelemetry.Extensions.AWS.Tests.csproj +++ b/test/OpenTelemetry.Extensions.AWS.Tests/OpenTelemetry.Extensions.AWS.Tests.csproj @@ -3,6 +3,7 @@ $(SupportedNetTargets) $(TargetFrameworks);$(NetFrameworkMinimumSupportedVersion) + enable diff --git a/test/OpenTelemetry.Extensions.AWS.Tests/Trace/AWSXRayPropagatorTests.cs b/test/OpenTelemetry.Extensions.AWS.Tests/Trace/AWSXRayPropagatorTests.cs index b73736ab3b..c654ec2b9e 100644 --- a/test/OpenTelemetry.Extensions.AWS.Tests/Trace/AWSXRayPropagatorTests.cs +++ b/test/OpenTelemetry.Extensions.AWS.Tests/Trace/AWSXRayPropagatorTests.cs @@ -1,8 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry.Context.Propagation; using OpenTelemetry.Extensions.AWS.Trace; diff --git a/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetry.Extensions.Enrichment.Tests.csproj b/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetry.Extensions.Enrichment.Tests.csproj index c7400ad0a6..0175c67b27 100644 --- a/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetry.Extensions.Enrichment.Tests.csproj +++ b/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetry.Extensions.Enrichment.Tests.csproj @@ -5,6 +5,7 @@ $(SupportedNetTargets) $(TargetFrameworks);$(NetFrameworkMinimumSupportedVersion) + enable diff --git a/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentProviderBuilderExtensions.cs b/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentProviderBuilderExtensions.cs index 804266db42..86976d8f5d 100644 --- a/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentProviderBuilderExtensions.cs +++ b/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentProviderBuilderExtensions.cs @@ -1,9 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using OpenTelemetry.Trace; using Xunit; diff --git a/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentServiceCollectionExtensionsTests.cs b/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentServiceCollectionExtensionsTests.cs index dbad6bf253..19448cb7dc 100644 --- a/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentServiceCollectionExtensionsTests.cs +++ b/test/OpenTelemetry.Extensions.Enrichment.Tests/OpenTelemetryEnrichmentServiceCollectionExtensionsTests.cs @@ -1,10 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using OpenTelemetry.Trace; diff --git a/test/OpenTelemetry.Extensions.Tests/ActivityEventAttachingLogProcessorTests.cs b/test/OpenTelemetry.Extensions.Tests/ActivityEventAttachingLogProcessorTests.cs index 54874eb090..c2a582701e 100644 --- a/test/OpenTelemetry.Extensions.Tests/ActivityEventAttachingLogProcessorTests.cs +++ b/test/OpenTelemetry.Extensions.Tests/ActivityEventAttachingLogProcessorTests.cs @@ -1,10 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using Microsoft.Extensions.Logging; using OpenTelemetry.Logs; using Xunit; diff --git a/test/OpenTelemetry.Extensions.Tests/OpenTelemetry.Extensions.Tests.csproj b/test/OpenTelemetry.Extensions.Tests/OpenTelemetry.Extensions.Tests.csproj index 704dda8498..9e145180e1 100644 --- a/test/OpenTelemetry.Extensions.Tests/OpenTelemetry.Extensions.Tests.csproj +++ b/test/OpenTelemetry.Extensions.Tests/OpenTelemetry.Extensions.Tests.csproj @@ -5,6 +5,7 @@ $(SupportedNetTargets) $(TargetFrameworks);net462 + enable diff --git a/test/OpenTelemetry.Extensions.Tests/Trace/AutoFlushActivityProcessorTests.cs b/test/OpenTelemetry.Extensions.Tests/Trace/AutoFlushActivityProcessorTests.cs index 7009420a97..7f96a8f3fa 100644 --- a/test/OpenTelemetry.Extensions.Tests/Trace/AutoFlushActivityProcessorTests.cs +++ b/test/OpenTelemetry.Extensions.Tests/Trace/AutoFlushActivityProcessorTests.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; using System.Diagnostics; using System.Runtime.CompilerServices; using OpenTelemetry.Tests; diff --git a/test/OpenTelemetry.PersistentStorage.Abstractions.Tests/OpenTelemetry.PersistentStorage.Abstractions.Tests.csproj b/test/OpenTelemetry.PersistentStorage.Abstractions.Tests/OpenTelemetry.PersistentStorage.Abstractions.Tests.csproj index 10d560b8e9..60b7fcc94f 100644 --- a/test/OpenTelemetry.PersistentStorage.Abstractions.Tests/OpenTelemetry.PersistentStorage.Abstractions.Tests.csproj +++ b/test/OpenTelemetry.PersistentStorage.Abstractions.Tests/OpenTelemetry.PersistentStorage.Abstractions.Tests.csproj @@ -4,6 +4,7 @@ $(SupportedNetTargets) $(TargetFrameworks);net462 + enable diff --git a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/DirectorySizeTrackerTests.cs b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/DirectorySizeTrackerTests.cs index 77547a8a30..65fe724208 100644 --- a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/DirectorySizeTrackerTests.cs +++ b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/DirectorySizeTrackerTests.cs @@ -1,7 +1,6 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System.IO; using Xunit; namespace OpenTelemetry.PersistentStorage.FileSystem.Tests; diff --git a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobProviderTests.cs b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobProviderTests.cs index cc202def9f..e35a2a4b90 100644 --- a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobProviderTests.cs +++ b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobProviderTests.cs @@ -1,10 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.IO; using System.Text; -using System.Threading; using Xunit; namespace OpenTelemetry.PersistentStorage.FileSystem.Tests; diff --git a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobTests.cs b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobTests.cs index aee14a6c67..cde187fcc3 100644 --- a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobTests.cs +++ b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/FileBlobTests.cs @@ -1,10 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -using System; -using System.IO; using System.Text; -using System.Threading; using OpenTelemetry.PersistentStorage.Abstractions; using Xunit; diff --git a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/OpenTelemetry.PersistentStorage.FileSystem.Tests.csproj b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/OpenTelemetry.PersistentStorage.FileSystem.Tests.csproj index d33c3e28e8..6e35fbd5a9 100644 --- a/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/OpenTelemetry.PersistentStorage.FileSystem.Tests.csproj +++ b/test/OpenTelemetry.PersistentStorage.FileSystem.Tests/OpenTelemetry.PersistentStorage.FileSystem.Tests.csproj @@ -4,6 +4,7 @@ $(SupportedNetTargets) $(TargetFrameworks);net462 + enable diff --git a/test/Shared/TestActivityProcessor.cs b/test/Shared/TestActivityProcessor.cs index f4ab71afa4..378c25b58c 100644 --- a/test/Shared/TestActivityProcessor.cs +++ b/test/Shared/TestActivityProcessor.cs @@ -3,8 +3,10 @@ #nullable enable +#pragma warning disable IDE0005 // Using directive is unnecessary. using System; using System.Diagnostics; +#pragma warning restore IDE0005 // Using directive is unnecessary. namespace OpenTelemetry.Tests;