diff --git a/src/OpenTelemetry.Api/Baggage.cs b/src/OpenTelemetry.Api/Baggage.cs index 3dddf60ef89..9a3d083fa19 100644 --- a/src/OpenTelemetry.Api/Baggage.cs +++ b/src/OpenTelemetry.Api/Baggage.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Linq; using OpenTelemetry.Context; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/BaseProvider.cs b/src/OpenTelemetry.Api/BaseProvider.cs index 4aabc8cd119..93aa680a331 100644 --- a/src/OpenTelemetry.Api/BaseProvider.cs +++ b/src/OpenTelemetry.Api/BaseProvider.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry { /// diff --git a/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs index f38af6d6cf5..90c1e221e1d 100644 --- a/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/AsyncLocalRuntimeContextSlot.cs @@ -15,7 +15,6 @@ // using System.Runtime.CompilerServices; -using System.Threading; namespace OpenTelemetry.Context { diff --git a/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs b/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs index 5d1b61089f7..dd749eb856f 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/B3Propagator.cs @@ -14,10 +14,7 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Text; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs index 3587a2fdad6..30e4388a056 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Linq; using System.Net; using System.Text; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs index d6b1923eac0..18c1633ca82 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/CompositeTextMapPropagator.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using OpenTelemetry.Internal; namespace OpenTelemetry.Context.Propagation diff --git a/src/OpenTelemetry.Api/Context/Propagation/NoopTextMapPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/NoopTextMapPropagator.cs index e21dd369e08..a63d896e983 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/NoopTextMapPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/NoopTextMapPropagator.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; - namespace OpenTelemetry.Context.Propagation { internal sealed class NoopTextMapPropagator : TextMapPropagator diff --git a/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs b/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs index b9114e92fb5..c7846bc6e4b 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/PropagationContext.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; namespace OpenTelemetry.Context.Propagation diff --git a/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs index 2ac95bc71d5..0516e9c1ab6 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TextMapPropagator.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; - namespace OpenTelemetry.Context.Propagation { /// diff --git a/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs index fc18d3a7851..4e65a6436c7 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TraceContextPropagator.cs @@ -14,10 +14,7 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Runtime.CompilerServices; using System.Text; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs b/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs index ab2215faf69..19bd96f8196 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/TraceStateUtilsNew.cs @@ -14,10 +14,7 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Text; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Context/RuntimeContext.cs b/src/OpenTelemetry.Api/Context/RuntimeContext.cs index 9c84694f857..6ff9699f9f6 100644 --- a/src/OpenTelemetry.Api/Context/RuntimeContext.cs +++ b/src/OpenTelemetry.Api/Context/RuntimeContext.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Collections.Concurrent; using System.Runtime.CompilerServices; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs index 773bb000c6b..9864634f7c2 100644 --- a/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/RuntimeContextSlot.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Context { /// diff --git a/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs b/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs index 7da2c606ca9..cc312e99469 100644 --- a/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs +++ b/src/OpenTelemetry.Api/Context/ThreadLocalRuntimeContextSlot.cs @@ -15,7 +15,6 @@ // using System.Runtime.CompilerServices; -using System.Threading; namespace OpenTelemetry.Context { diff --git a/src/OpenTelemetry.Api/Internal/ExceptionExtensions.cs b/src/OpenTelemetry.Api/Internal/ExceptionExtensions.cs index 733b32295b4..fda39cb828c 100644 --- a/src/OpenTelemetry.Api/Internal/ExceptionExtensions.cs +++ b/src/OpenTelemetry.Api/Internal/ExceptionExtensions.cs @@ -14,11 +14,7 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; using System.Globalization; -using System.Threading; -#pragma warning restore IDE0005 namespace OpenTelemetry.Internal { diff --git a/src/OpenTelemetry.Api/Internal/Guard.cs b/src/OpenTelemetry.Api/Internal/Guard.cs index cafb516a61f..e248310d1c6 100644 --- a/src/OpenTelemetry.Api/Internal/Guard.cs +++ b/src/OpenTelemetry.Api/Internal/Guard.cs @@ -14,13 +14,9 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; using System.Diagnostics; using System.Globalization; using System.Runtime.CompilerServices; -using System.Threading; -#pragma warning restore IDE0005 #if !NET6_0_OR_GREATER namespace System.Runtime.CompilerServices diff --git a/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs b/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs index 55f1bd54c09..a522cb5f223 100644 --- a/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs +++ b/src/OpenTelemetry.Api/Internal/OpenTelemetryApiEventSource.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics.Tracing; namespace OpenTelemetry.Internal diff --git a/src/OpenTelemetry.Api/Internal/StatusHelper.cs b/src/OpenTelemetry.Api/Internal/StatusHelper.cs index 9104bc9471c..78d8fa0cc24 100644 --- a/src/OpenTelemetry.Api/Internal/StatusHelper.cs +++ b/src/OpenTelemetry.Api/Internal/StatusHelper.cs @@ -14,11 +14,8 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; using System.Runtime.CompilerServices; using OpenTelemetry.Trace; -#pragma warning restore IDE0005 namespace OpenTelemetry.Internal { diff --git a/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs b/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs index d0a98a05db8..b33ee69575b 100644 --- a/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Metrics/IDeferredMeterProviderBuilder.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { /// diff --git a/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs b/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs index 4fa833ff3c9..af79f1cc237 100644 --- a/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Metrics/MeterProviderBuilder.cs @@ -13,7 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. // -using System; namespace OpenTelemetry.Metrics { diff --git a/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj b/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj index 04c193dd90c..68245bbf385 100644 --- a/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj +++ b/src/OpenTelemetry.Api/OpenTelemetry.Api.csproj @@ -10,7 +10,6 @@ disable - disable diff --git a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs index fc3738311e9..82694da4398 100644 --- a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs +++ b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Runtime.CompilerServices; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs b/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs index 882f57ce802..9ca1f3b51cf 100644 --- a/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Trace/IDeferredTracerProviderBuilder.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Trace { /// diff --git a/src/OpenTelemetry.Api/Trace/Link.cs b/src/OpenTelemetry.Api/Trace/Link.cs index cc91c9ae99a..46feae2adc4 100644 --- a/src/OpenTelemetry.Api/Trace/Link.cs +++ b/src/OpenTelemetry.Api/Trace/Link.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using System.Diagnostics; namespace OpenTelemetry.Trace diff --git a/src/OpenTelemetry.Api/Trace/SpanAttributes.cs b/src/OpenTelemetry.Api/Trace/SpanAttributes.cs index f5672c71978..02d74c9ff2c 100644 --- a/src/OpenTelemetry.Api/Trace/SpanAttributes.cs +++ b/src/OpenTelemetry.Api/Trace/SpanAttributes.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Trace/SpanContext.cs b/src/OpenTelemetry.Api/Trace/SpanContext.cs index d22742ac950..a2915454236 100644 --- a/src/OpenTelemetry.Api/Trace/SpanContext.cs +++ b/src/OpenTelemetry.Api/Trace/SpanContext.cs @@ -13,9 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using OpenTelemetry.Context.Propagation; namespace OpenTelemetry.Trace diff --git a/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs b/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs index 3129cde8d16..1b4a69ba009 100644 --- a/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs +++ b/src/OpenTelemetry.Api/Trace/TelemetrySpan.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Runtime.CompilerServices; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry.Api/Trace/Tracer.cs b/src/OpenTelemetry.Api/Trace/Tracer.cs index 0050c294655..f9ea3a39f0d 100644 --- a/src/OpenTelemetry.Api/Trace/Tracer.cs +++ b/src/OpenTelemetry.Api/Trace/Tracer.cs @@ -14,10 +14,7 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Runtime.CompilerServices; namespace OpenTelemetry.Trace diff --git a/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs b/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs index f63564ec9bd..3c773895630 100644 --- a/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs +++ b/src/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs @@ -13,7 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. // -using System; using System.Diagnostics; namespace OpenTelemetry.Trace diff --git a/src/OpenTelemetry/BaseExportProcessor.cs b/src/OpenTelemetry/BaseExportProcessor.cs index b989f2381e0..9684a764ae2 100644 --- a/src/OpenTelemetry/BaseExportProcessor.cs +++ b/src/OpenTelemetry/BaseExportProcessor.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using OpenTelemetry.Internal; namespace OpenTelemetry diff --git a/src/OpenTelemetry/BaseExporter.cs b/src/OpenTelemetry/BaseExporter.cs index cb1d70d84d0..40c3b8b210b 100644 --- a/src/OpenTelemetry/BaseExporter.cs +++ b/src/OpenTelemetry/BaseExporter.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry diff --git a/src/OpenTelemetry/BaseProcessor.cs b/src/OpenTelemetry/BaseProcessor.cs index 02df50e39bf..78e6c2daf88 100644 --- a/src/OpenTelemetry/BaseProcessor.cs +++ b/src/OpenTelemetry/BaseProcessor.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry diff --git a/src/OpenTelemetry/Batch.cs b/src/OpenTelemetry/Batch.cs index 8ec2b9dc288..540fe80c590 100644 --- a/src/OpenTelemetry/Batch.cs +++ b/src/OpenTelemetry/Batch.cs @@ -16,9 +16,7 @@ #nullable enable -using System; using System.Collections; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/BatchExportProcessor.cs b/src/OpenTelemetry/BatchExportProcessor.cs index f0231cc15f5..5f51ed6c143 100644 --- a/src/OpenTelemetry/BatchExportProcessor.cs +++ b/src/OpenTelemetry/BatchExportProcessor.cs @@ -16,10 +16,8 @@ #nullable enable -using System; using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry diff --git a/src/OpenTelemetry/CompositeProcessor.cs b/src/OpenTelemetry/CompositeProcessor.cs index 38a2babf9c9..055e4eec5cd 100644 --- a/src/OpenTelemetry/CompositeProcessor.cs +++ b/src/OpenTelemetry/CompositeProcessor.cs @@ -16,10 +16,7 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry diff --git a/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs b/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs index d1344d6b04e..6993b06805a 100644 --- a/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs +++ b/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceListener.cs @@ -14,9 +14,6 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry.Internal; #pragma warning restore IDE0005 diff --git a/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs b/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs index 4a980123a1c..3c79108a6e5 100644 --- a/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs +++ b/src/OpenTelemetry/DiagnosticSourceInstrumentation/DiagnosticSourceSubscriber.cs @@ -14,11 +14,7 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Threading; using OpenTelemetry.Internal; #pragma warning restore IDE0005 diff --git a/src/OpenTelemetry/DiagnosticSourceInstrumentation/InstrumentationEventSource.cs b/src/OpenTelemetry/DiagnosticSourceInstrumentation/InstrumentationEventSource.cs index 2b7f8905e5a..ba44cab4dce 100644 --- a/src/OpenTelemetry/DiagnosticSourceInstrumentation/InstrumentationEventSource.cs +++ b/src/OpenTelemetry/DiagnosticSourceInstrumentation/InstrumentationEventSource.cs @@ -14,8 +14,6 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; using System.Diagnostics.Tracing; using OpenTelemetry.Internal; #pragma warning restore IDE0005 diff --git a/src/OpenTelemetry/DiagnosticSourceInstrumentation/PropertyFetcher.cs b/src/OpenTelemetry/DiagnosticSourceInstrumentation/PropertyFetcher.cs index 834ce740dbd..f1e8b25ebeb 100644 --- a/src/OpenTelemetry/DiagnosticSourceInstrumentation/PropertyFetcher.cs +++ b/src/OpenTelemetry/DiagnosticSourceInstrumentation/PropertyFetcher.cs @@ -14,9 +14,6 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; -using System.Linq; using System.Reflection; using OpenTelemetry.Internal; #pragma warning restore IDE0005 diff --git a/src/OpenTelemetry/Internal/ActivityInstrumentationHelper.cs b/src/OpenTelemetry/Internal/ActivityInstrumentationHelper.cs index 2176574e479..5a97e5fc2f6 100644 --- a/src/OpenTelemetry/Internal/ActivityInstrumentationHelper.cs +++ b/src/OpenTelemetry/Internal/ActivityInstrumentationHelper.cs @@ -14,8 +14,6 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; using System.Diagnostics; using System.Linq.Expressions; #pragma warning restore IDE0005 diff --git a/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionCallbackHelper.cs b/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionCallbackHelper.cs index 0e5d995a98e..0c6c088c50a 100644 --- a/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionCallbackHelper.cs +++ b/src/OpenTelemetry/Internal/Builder/ProviderBuilderServiceCollectionCallbackHelper.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; diff --git a/src/OpenTelemetry/Internal/Builder/ProviderBuilderState.cs b/src/OpenTelemetry/Internal/Builder/ProviderBuilderState.cs index 3862f7a2120..3ff92761e95 100644 --- a/src/OpenTelemetry/Internal/Builder/ProviderBuilderState.cs +++ b/src/OpenTelemetry/Internal/Builder/ProviderBuilderState.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry.Resources; diff --git a/src/OpenTelemetry/Internal/CircularBuffer.cs b/src/OpenTelemetry/Internal/CircularBuffer.cs index 069ff70cfa4..2625289abcc 100644 --- a/src/OpenTelemetry/Internal/CircularBuffer.cs +++ b/src/OpenTelemetry/Internal/CircularBuffer.cs @@ -17,7 +17,6 @@ #nullable enable using System.Runtime.CompilerServices; -using System.Threading; namespace OpenTelemetry.Internal { diff --git a/src/OpenTelemetry/Internal/ConfigurationExtensions.cs b/src/OpenTelemetry/Internal/ConfigurationExtensions.cs index 29cc740ce16..6259d571f3a 100644 --- a/src/OpenTelemetry/Internal/ConfigurationExtensions.cs +++ b/src/OpenTelemetry/Internal/ConfigurationExtensions.cs @@ -16,9 +16,6 @@ #nullable enable -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; -using System.Collections.Generic; using System.Diagnostics; #if !NETFRAMEWORK && !NETSTANDARD2_0 using System.Diagnostics.CodeAnalysis; @@ -28,7 +25,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Options; -#pragma warning restore IDE0005 namespace OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs b/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs index efaa4d990a0..f8f941f2b67 100644 --- a/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs +++ b/src/OpenTelemetry/Internal/OpenTelemetrySdkEventSource.cs @@ -14,16 +14,9 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; -#if DEBUG -using System.Collections.Generic; -using System.Linq; -#endif using System.Diagnostics; using System.Diagnostics.Tracing; using System.Security; -#pragma warning restore IDE0005 namespace OpenTelemetry.Internal { diff --git a/src/OpenTelemetry/Internal/PeerServiceResolver.cs b/src/OpenTelemetry/Internal/PeerServiceResolver.cs index f1f812b1ee5..bfbb84dec04 100644 --- a/src/OpenTelemetry/Internal/PeerServiceResolver.cs +++ b/src/OpenTelemetry/Internal/PeerServiceResolver.cs @@ -14,12 +14,8 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; using OpenTelemetry.Trace; -#pragma warning restore IDE0005 namespace OpenTelemetry.Exporter { diff --git a/src/OpenTelemetry/Internal/PooledList.cs b/src/OpenTelemetry/Internal/PooledList.cs index 77aa51fbb0f..8aad286d5e6 100644 --- a/src/OpenTelemetry/Internal/PooledList.cs +++ b/src/OpenTelemetry/Internal/PooledList.cs @@ -14,12 +14,8 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; using System.Buffers; using System.Collections; -using System.Collections.Generic; -#pragma warning restore IDE0005 namespace OpenTelemetry.Internal { diff --git a/src/OpenTelemetry/Internal/SelfDiagnostics.cs b/src/OpenTelemetry/Internal/SelfDiagnostics.cs index 6209984fb1e..9f7a6cf755a 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnostics.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnostics.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Internal { /// diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs index d517f8667f0..d562ae5f403 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigParser.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System; using System.Diagnostics.Tracing; -using System.IO; using System.Text; using System.Text.RegularExpressions; diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs index 354e513dd10..924b044d7a4 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsConfigRefresher.cs @@ -14,14 +14,10 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Diagnostics.Tracing; -using System.IO; using System.IO.MemoryMappedFiles; using System.Text; -using System.Threading; -using System.Threading.Tasks; namespace OpenTelemetry.Internal { diff --git a/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs b/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs index d855aef122c..437ffa7796f 100644 --- a/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs +++ b/src/OpenTelemetry/Internal/SelfDiagnosticsEventListener.cs @@ -14,13 +14,9 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.Tracing; -using System.IO; using System.Text; -using System.Threading; namespace OpenTelemetry.Internal { diff --git a/src/OpenTelemetry/Internal/TagAndValueTransformer.cs b/src/OpenTelemetry/Internal/TagAndValueTransformer.cs index ea021d17f49..fe1d1181215 100644 --- a/src/OpenTelemetry/Internal/TagAndValueTransformer.cs +++ b/src/OpenTelemetry/Internal/TagAndValueTransformer.cs @@ -14,10 +14,7 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; using System.Diagnostics; -#pragma warning restore IDE0005 namespace OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Internal/TagTransformer.cs b/src/OpenTelemetry/Internal/TagTransformer.cs index 1766ed1a848..bb09dd3947d 100644 --- a/src/OpenTelemetry/Internal/TagTransformer.cs +++ b/src/OpenTelemetry/Internal/TagTransformer.cs @@ -14,12 +14,6 @@ // limitations under the License. // -#pragma warning disable IDE0005 // Temporarily suppressing "Using directive is unnecessary" until other projects have been updated. See #3958. -using System; -using System.Collections.Generic; -using System.Linq; -#pragma warning restore IDE0005 - namespace OpenTelemetry.Internal; internal abstract class TagTransformer diff --git a/src/OpenTelemetry/Internal/WildcardHelper.cs b/src/OpenTelemetry/Internal/WildcardHelper.cs index 8432286f409..a5161fdfde8 100644 --- a/src/OpenTelemetry/Internal/WildcardHelper.cs +++ b/src/OpenTelemetry/Internal/WildcardHelper.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System.Collections.Generic; -using System.Linq; using System.Text.RegularExpressions; namespace OpenTelemetry; diff --git a/src/OpenTelemetry/Logs/LogRecord.cs b/src/OpenTelemetry/Logs/LogRecord.cs index 1991b94fe0f..19687743a59 100644 --- a/src/OpenTelemetry/Logs/LogRecord.cs +++ b/src/OpenTelemetry/Logs/LogRecord.cs @@ -16,11 +16,8 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Threading; using Microsoft.Extensions.Logging; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Logs/LogRecordAttributeList.cs b/src/OpenTelemetry/Logs/LogRecordAttributeList.cs index 385ba8f108e..3b19a84b5f0 100644 --- a/src/OpenTelemetry/Logs/LogRecordAttributeList.cs +++ b/src/OpenTelemetry/Logs/LogRecordAttributeList.cs @@ -16,9 +16,7 @@ #nullable enable -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Logs/LogRecordData.cs b/src/OpenTelemetry/Logs/LogRecordData.cs index 538bf0a3666..0da6848af61 100644 --- a/src/OpenTelemetry/Logs/LogRecordData.cs +++ b/src/OpenTelemetry/Logs/LogRecordData.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics; using Microsoft.Extensions.Logging; diff --git a/src/OpenTelemetry/Logs/LogRecordScope.cs b/src/OpenTelemetry/Logs/LogRecordScope.cs index 2e6bc6c0296..03ea85873fc 100644 --- a/src/OpenTelemetry/Logs/LogRecordScope.cs +++ b/src/OpenTelemetry/Logs/LogRecordScope.cs @@ -16,9 +16,7 @@ #nullable enable -using System; using System.Collections; -using System.Collections.Generic; namespace OpenTelemetry.Logs { diff --git a/src/OpenTelemetry/Logs/OpenTelemetryLogger.cs b/src/OpenTelemetry/Logs/OpenTelemetryLogger.cs index 4c5cfc6bcf5..817bd8e8ab7 100644 --- a/src/OpenTelemetry/Logs/OpenTelemetryLogger.cs +++ b/src/OpenTelemetry/Logs/OpenTelemetryLogger.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using Microsoft.Extensions.Logging; diff --git a/src/OpenTelemetry/Logs/OpenTelemetryLoggerProvider.cs b/src/OpenTelemetry/Logs/OpenTelemetryLoggerProvider.cs index af48d1ab528..b2e6e2311e7 100644 --- a/src/OpenTelemetry/Logs/OpenTelemetryLoggerProvider.cs +++ b/src/OpenTelemetry/Logs/OpenTelemetryLoggerProvider.cs @@ -16,10 +16,8 @@ #nullable enable -using System; using System.Collections; using System.Text; -using System.Threading; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; diff --git a/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs b/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs index 844a744dd2d..a6f2b61ddc1 100644 --- a/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs +++ b/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Logging; diff --git a/src/OpenTelemetry/Logs/Options/OpenTelemetryLoggerOptions.cs b/src/OpenTelemetry/Logs/Options/OpenTelemetryLoggerOptions.cs index 022df5c1175..d6b5034e0e4 100644 --- a/src/OpenTelemetry/Logs/Options/OpenTelemetryLoggerOptions.cs +++ b/src/OpenTelemetry/Logs/Options/OpenTelemetryLoggerOptions.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using OpenTelemetry.Internal; using OpenTelemetry.Resources; diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs b/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs index 57234057ae8..725d5cc1a2d 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordSharedPool.cs @@ -17,7 +17,6 @@ #nullable enable using System.Diagnostics.CodeAnalysis; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry.Logs diff --git a/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs b/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs index 28b417f130d..d72f0754017 100644 --- a/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs +++ b/src/OpenTelemetry/Logs/Pool/LogRecordThreadStaticPool.cs @@ -16,8 +16,6 @@ #nullable enable -using System; - namespace OpenTelemetry.Logs { internal sealed class LogRecordThreadStaticPool : ILogRecordPool diff --git a/src/OpenTelemetry/Metrics/AggregatorStore.cs b/src/OpenTelemetry/Metrics/AggregatorStore.cs index d31b7477d30..a53780470c5 100644 --- a/src/OpenTelemetry/Metrics/AggregatorStore.cs +++ b/src/OpenTelemetry/Metrics/AggregatorStore.cs @@ -14,11 +14,8 @@ // limitations under the License. // -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs b/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs index c9b6346d517..72582295ef8 100644 --- a/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs +++ b/src/OpenTelemetry/Metrics/BaseExportingMetricReader.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System; using System.Diagnostics; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs index 3fb13d9a72c..f63284a74e4 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderBase.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics; using System.Diagnostics.Metrics; using System.Text.RegularExpressions; diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs index 7342a734a07..a1f2e4408e2 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics.Metrics; using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Resources; diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderServiceCollectionExtensions.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderServiceCollectionExtensions.cs index 8e34bd4b5a3..631c7bb1c0b 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderServiceCollectionExtensions.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderServiceCollectionExtensions.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using OpenTelemetry; using OpenTelemetry.Internal; using OpenTelemetry.Metrics; diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderState.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderState.cs index ebd9b81e53b..a71d046cdd0 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderState.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderState.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Metrics/CompositeMetricReader.cs b/src/OpenTelemetry/Metrics/CompositeMetricReader.cs index 5f778b3a836..fa3ddbc2968 100644 --- a/src/OpenTelemetry/Metrics/CompositeMetricReader.cs +++ b/src/OpenTelemetry/Metrics/CompositeMetricReader.cs @@ -14,10 +14,7 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs b/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs index 20b0b681664..51666658091 100644 --- a/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs +++ b/src/OpenTelemetry/Metrics/CompositeMetricReaderExt.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; diff --git a/src/OpenTelemetry/Metrics/ExplicitBucketHistogramConfiguration.cs b/src/OpenTelemetry/Metrics/ExplicitBucketHistogramConfiguration.cs index 8be618748fc..4ae3654210c 100644 --- a/src/OpenTelemetry/Metrics/ExplicitBucketHistogramConfiguration.cs +++ b/src/OpenTelemetry/Metrics/ExplicitBucketHistogramConfiguration.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { /// diff --git a/src/OpenTelemetry/Metrics/ExponentialBucketHistogram.cs b/src/OpenTelemetry/Metrics/ExponentialBucketHistogram.cs index 0f83121bea1..275baf5a78b 100644 --- a/src/OpenTelemetry/Metrics/ExponentialBucketHistogram.cs +++ b/src/OpenTelemetry/Metrics/ExponentialBucketHistogram.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Metrics/ExportModes.cs b/src/OpenTelemetry/Metrics/ExportModes.cs index ee832bd9047..91f237cd410 100644 --- a/src/OpenTelemetry/Metrics/ExportModes.cs +++ b/src/OpenTelemetry/Metrics/ExportModes.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { [Flags] diff --git a/src/OpenTelemetry/Metrics/ExportModesAttribute.cs b/src/OpenTelemetry/Metrics/ExportModesAttribute.cs index 77fdbecec21..6859b70724f 100644 --- a/src/OpenTelemetry/Metrics/ExportModesAttribute.cs +++ b/src/OpenTelemetry/Metrics/ExportModesAttribute.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] diff --git a/src/OpenTelemetry/Metrics/HistogramBuckets.cs b/src/OpenTelemetry/Metrics/HistogramBuckets.cs index c0160e534ee..f0cf3938299 100644 --- a/src/OpenTelemetry/Metrics/HistogramBuckets.cs +++ b/src/OpenTelemetry/Metrics/HistogramBuckets.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Runtime.CompilerServices; diff --git a/src/OpenTelemetry/Metrics/IPullMetricExporter.cs b/src/OpenTelemetry/Metrics/IPullMetricExporter.cs index aac55247fdf..29fc3c8ce33 100644 --- a/src/OpenTelemetry/Metrics/IPullMetricExporter.cs +++ b/src/OpenTelemetry/Metrics/IPullMetricExporter.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { /// diff --git a/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs b/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs index 794833b44cc..59ce3ad9d9a 100644 --- a/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs +++ b/src/OpenTelemetry/Metrics/MeterProviderExtensions.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/MeterProviderSdk.cs b/src/OpenTelemetry/Metrics/MeterProviderSdk.cs index 8a8ab77f9c8..906d582279c 100644 --- a/src/OpenTelemetry/Metrics/MeterProviderSdk.cs +++ b/src/OpenTelemetry/Metrics/MeterProviderSdk.cs @@ -16,11 +16,8 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; -using System.Linq; using System.Text; using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Metrics/Metric.cs b/src/OpenTelemetry/Metrics/Metric.cs index 94a835e1d18..63338d81c2e 100644 --- a/src/OpenTelemetry/Metrics/Metric.cs +++ b/src/OpenTelemetry/Metrics/Metric.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Diagnostics.Metrics; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/MetricPoint.cs b/src/OpenTelemetry/Metrics/MetricPoint.cs index 99adab1af6e..0795b682e97 100644 --- a/src/OpenTelemetry/Metrics/MetricPoint.cs +++ b/src/OpenTelemetry/Metrics/MetricPoint.cs @@ -14,10 +14,8 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Threading; namespace OpenTelemetry.Metrics { diff --git a/src/OpenTelemetry/Metrics/MetricReader.cs b/src/OpenTelemetry/Metrics/MetricReader.cs index 8dcae7169bb..b5917d290a7 100644 --- a/src/OpenTelemetry/Metrics/MetricReader.cs +++ b/src/OpenTelemetry/Metrics/MetricReader.cs @@ -14,11 +14,8 @@ // limitations under the License. // -using System; using System.Diagnostics; using System.Diagnostics.Metrics; -using System.Threading; -using System.Threading.Tasks; using OpenTelemetry.Internal; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/MetricReaderExt.cs b/src/OpenTelemetry/Metrics/MetricReaderExt.cs index 4aa6769f346..c4710fe7bb5 100644 --- a/src/OpenTelemetry/Metrics/MetricReaderExt.cs +++ b/src/OpenTelemetry/Metrics/MetricReaderExt.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics.Metrics; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs b/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs index 907c16e73d8..fec1be228f1 100644 --- a/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs +++ b/src/OpenTelemetry/Metrics/MetricStreamConfiguration.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { /// diff --git a/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs b/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs index 9039aa7612c..96a7ec53c62 100644 --- a/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs +++ b/src/OpenTelemetry/Metrics/MetricStreamIdentity.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Diagnostics.Metrics; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/MetricType.cs b/src/OpenTelemetry/Metrics/MetricType.cs index c5f1b375b29..93301a23b62 100644 --- a/src/OpenTelemetry/Metrics/MetricType.cs +++ b/src/OpenTelemetry/Metrics/MetricType.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { [Flags] diff --git a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs index d008d20282d..69ad205c313 100644 --- a/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs +++ b/src/OpenTelemetry/Metrics/PeriodicExportingMetricReader.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System; using System.Diagnostics; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/PullMetricScope.cs b/src/OpenTelemetry/Metrics/PullMetricScope.cs index dd00e844bad..631dbdf7145 100644 --- a/src/OpenTelemetry/Metrics/PullMetricScope.cs +++ b/src/OpenTelemetry/Metrics/PullMetricScope.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using OpenTelemetry.Context; namespace OpenTelemetry.Metrics diff --git a/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs b/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs index 579325cef2a..74affe8f0ef 100644 --- a/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs +++ b/src/OpenTelemetry/Metrics/StringArrayEqualityComparer.cs @@ -14,9 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; - namespace OpenTelemetry.Metrics { internal sealed class StringArrayEqualityComparer : IEqualityComparer diff --git a/src/OpenTelemetry/Metrics/Tags.cs b/src/OpenTelemetry/Metrics/Tags.cs index e7996bd846a..ba754fd7954 100644 --- a/src/OpenTelemetry/Metrics/Tags.cs +++ b/src/OpenTelemetry/Metrics/Tags.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { internal readonly struct Tags : IEquatable diff --git a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs index 951ad1bac4a..023ba174d70 100644 --- a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs +++ b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/OpenTelemetry.csproj b/src/OpenTelemetry/OpenTelemetry.csproj index a2a06653357..5d5d8a4a32c 100644 --- a/src/OpenTelemetry/OpenTelemetry.csproj +++ b/src/OpenTelemetry/OpenTelemetry.csproj @@ -11,7 +11,6 @@ disable - disable diff --git a/src/OpenTelemetry/ProviderExtensions.cs b/src/OpenTelemetry/ProviderExtensions.cs index 0ce5752c1e7..c83127fdc51 100644 --- a/src/OpenTelemetry/ProviderExtensions.cs +++ b/src/OpenTelemetry/ProviderExtensions.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using OpenTelemetry.Logs; using OpenTelemetry.Metrics; using OpenTelemetry.Resources; diff --git a/src/OpenTelemetry/ReadOnlyTagCollection.cs b/src/OpenTelemetry/ReadOnlyTagCollection.cs index 27cdaabbaaf..d1c63c5bee7 100644 --- a/src/OpenTelemetry/ReadOnlyTagCollection.cs +++ b/src/OpenTelemetry/ReadOnlyTagCollection.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; namespace OpenTelemetry diff --git a/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs b/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs index b0e893618dc..59dbc8d08c8 100644 --- a/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs +++ b/src/OpenTelemetry/Resources/OtelEnvResourceDetector.cs @@ -16,7 +16,6 @@ #nullable enable -using System.Collections.Generic; using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs b/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs index 9b48f113956..4319a8a9f65 100644 --- a/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs +++ b/src/OpenTelemetry/Resources/OtelServiceNameEnvVarDetector.cs @@ -16,7 +16,6 @@ #nullable enable -using System.Collections.Generic; using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Resources/Resource.cs b/src/OpenTelemetry/Resources/Resource.cs index f6e82e2ffa4..ab5bc0733c8 100644 --- a/src/OpenTelemetry/Resources/Resource.cs +++ b/src/OpenTelemetry/Resources/Resource.cs @@ -16,10 +16,7 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; using OpenTelemetry.Internal; namespace OpenTelemetry.Resources diff --git a/src/OpenTelemetry/Resources/ResourceBuilder.cs b/src/OpenTelemetry/Resources/ResourceBuilder.cs index 7c1ef54fdaa..25f408bf675 100644 --- a/src/OpenTelemetry/Resources/ResourceBuilder.cs +++ b/src/OpenTelemetry/Resources/ResourceBuilder.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs b/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs index c68ee7ece59..3fcaf4b2b64 100644 --- a/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs +++ b/src/OpenTelemetry/Resources/ResourceBuilderExtensions.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Reflection; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; diff --git a/src/OpenTelemetry/SimpleExportProcessor.cs b/src/OpenTelemetry/SimpleExportProcessor.cs index b7ada68a779..50dfb6679d1 100644 --- a/src/OpenTelemetry/SimpleExportProcessor.cs +++ b/src/OpenTelemetry/SimpleExportProcessor.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using OpenTelemetry.Internal; namespace OpenTelemetry diff --git a/src/OpenTelemetry/SuppressInstrumentationScope.cs b/src/OpenTelemetry/SuppressInstrumentationScope.cs index 014c0743bdc..5a7319d52fb 100644 --- a/src/OpenTelemetry/SuppressInstrumentationScope.cs +++ b/src/OpenTelemetry/SuppressInstrumentationScope.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Runtime.CompilerServices; using OpenTelemetry.Context; diff --git a/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs b/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs index 0dd3fc39bcb..49c879b9993 100644 --- a/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs +++ b/src/OpenTelemetry/Trace/BatchExportActivityProcessorOptions.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics; using Microsoft.Extensions.Configuration; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs index 63e9e54416d..0ce4d3b2c28 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs index 29e0e2512d3..654b368c721 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics; using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Resources; diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderServiceCollectionExtensions.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderServiceCollectionExtensions.cs index 8b37f9080fb..68408ae056b 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderServiceCollectionExtensions.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderServiceCollectionExtensions.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using OpenTelemetry; using OpenTelemetry.Internal; using OpenTelemetry.Trace; diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderState.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderState.cs index f446834249b..129efc55d97 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderState.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderState.cs @@ -16,8 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Trace/ExceptionProcessor.cs b/src/OpenTelemetry/Trace/ExceptionProcessor.cs index bbfd09712f1..560395d9e1b 100644 --- a/src/OpenTelemetry/Trace/ExceptionProcessor.cs +++ b/src/OpenTelemetry/Trace/ExceptionProcessor.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Diagnostics; using System.Linq.Expressions; using System.Reflection; diff --git a/src/OpenTelemetry/Trace/SamplingParameters.cs b/src/OpenTelemetry/Trace/SamplingParameters.cs index 089c1ee63a1..daad55c05c8 100644 --- a/src/OpenTelemetry/Trace/SamplingParameters.cs +++ b/src/OpenTelemetry/Trace/SamplingParameters.cs @@ -16,7 +16,6 @@ #nullable enable -using System.Collections.Generic; using System.Diagnostics; namespace OpenTelemetry.Trace diff --git a/src/OpenTelemetry/Trace/SamplingResult.cs b/src/OpenTelemetry/Trace/SamplingResult.cs index fe8ca36184a..c50529cd968 100644 --- a/src/OpenTelemetry/Trace/SamplingResult.cs +++ b/src/OpenTelemetry/Trace/SamplingResult.cs @@ -16,10 +16,6 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.Linq; - namespace OpenTelemetry.Trace { /// diff --git a/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs b/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs index 20e00b5b66d..a782c002506 100644 --- a/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs +++ b/src/OpenTelemetry/Trace/TraceIdRatioBasedSampler.cs @@ -16,7 +16,6 @@ #nullable enable -using System; using System.Globalization; using OpenTelemetry.Internal; diff --git a/src/OpenTelemetry/Trace/TracerProviderExtensions.cs b/src/OpenTelemetry/Trace/TracerProviderExtensions.cs index 38e9d65c090..188e316bafe 100644 --- a/src/OpenTelemetry/Trace/TracerProviderExtensions.cs +++ b/src/OpenTelemetry/Trace/TracerProviderExtensions.cs @@ -16,9 +16,7 @@ #nullable enable -using System; using System.Diagnostics; -using System.Threading; using OpenTelemetry.Internal; namespace OpenTelemetry.Trace diff --git a/src/OpenTelemetry/Trace/TracerProviderSdk.cs b/src/OpenTelemetry/Trace/TracerProviderSdk.cs index 476ece22229..3505d71adb0 100644 --- a/src/OpenTelemetry/Trace/TracerProviderSdk.cs +++ b/src/OpenTelemetry/Trace/TracerProviderSdk.cs @@ -16,10 +16,7 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Runtime.CompilerServices; using System.Text; using Microsoft.Extensions.DependencyInjection;