diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index 6f4faf7cb21..887b96a65f0 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -3,7 +3,7 @@ name: markdownlint on: push: branches: [ main, metrics ] - paths-ignore: + paths: - '**.md' pull_request: branches: [ main, metrics ] diff --git a/docs/metrics/getting-started/Program.cs b/docs/metrics/getting-started/Program.cs index e8aa9c63267..dec6c5a3889 100644 --- a/docs/metrics/getting-started/Program.cs +++ b/docs/metrics/getting-started/Program.cs @@ -14,7 +14,6 @@ // limitations under the License. // -using System; using System.Collections.Generic; using System.Diagnostics.Metrics; using System.Threading; diff --git a/examples/Console/TestPrometheusExporter.cs b/examples/Console/TestPrometheusExporter.cs index 34ef6efcf08..17fbe05e435 100644 --- a/examples/Console/TestPrometheusExporter.cs +++ b/examples/Console/TestPrometheusExporter.cs @@ -14,9 +14,7 @@ // limitations under the License. // -using System; using System.Collections.Generic; -using System.Diagnostics; using System.Diagnostics.Metrics; using System.Threading; using System.Threading.Tasks; diff --git a/src/OpenTelemetry.Exporter.Prometheus/PrometheusExporter.cs b/src/OpenTelemetry.Exporter.Prometheus/PrometheusExporter.cs index ea51da4cf56..7f85f1ba7e8 100644 --- a/src/OpenTelemetry.Exporter.Prometheus/PrometheusExporter.cs +++ b/src/OpenTelemetry.Exporter.Prometheus/PrometheusExporter.cs @@ -15,9 +15,6 @@ // using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using OpenTelemetry.Metrics; namespace OpenTelemetry.Exporter diff --git a/src/OpenTelemetry/Logs/LogRecord.cs b/src/OpenTelemetry/Logs/LogRecord.cs index a0aa6fff8c0..a73d11c9cbd 100644 --- a/src/OpenTelemetry/Logs/LogRecord.cs +++ b/src/OpenTelemetry/Logs/LogRecord.cs @@ -17,7 +17,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Runtime.CompilerServices; using Microsoft.Extensions.Logging; namespace OpenTelemetry.Logs diff --git a/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs b/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs index 5e957170bf7..7affea1ef02 100644 --- a/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs +++ b/src/OpenTelemetry/Logs/OpenTelemetryLoggingExtensions.cs @@ -19,7 +19,6 @@ using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Configuration; -using OpenTelemetry; using OpenTelemetry.Logs; namespace Microsoft.Extensions.Logging diff --git a/src/OpenTelemetry/Metrics/DataPoint/DataValue.cs b/src/OpenTelemetry/Metrics/DataPoint/DataValue.cs index e3db6eef5a0..cfbe935a226 100644 --- a/src/OpenTelemetry/Metrics/DataPoint/DataValue.cs +++ b/src/OpenTelemetry/Metrics/DataPoint/DataValue.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; - namespace OpenTelemetry.Metrics { public readonly struct DataValue : IDataValue diff --git a/src/OpenTelemetry/Metrics/Processors/PullMetricProcessor.cs b/src/OpenTelemetry/Metrics/Processors/PullMetricProcessor.cs index e9ce9412b98..c0383278dc2 100644 --- a/src/OpenTelemetry/Metrics/Processors/PullMetricProcessor.cs +++ b/src/OpenTelemetry/Metrics/Processors/PullMetricProcessor.cs @@ -15,8 +15,6 @@ // using System; -using System.Threading; -using System.Threading.Tasks; namespace OpenTelemetry.Metrics { diff --git a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs index 78053e1166e..d0c109b5ea1 100644 --- a/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs +++ b/src/OpenTelemetry/Metrics/ThreadStaticStorage.cs @@ -16,7 +16,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics.Metrics; using System.Runtime.CompilerServices; namespace OpenTelemetry.Metrics diff --git a/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/Int128Test.cs b/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/Int128Test.cs index 165f34fdc96..09a2cf8ccc8 100644 --- a/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/Int128Test.cs +++ b/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/Int128Test.cs @@ -15,10 +15,9 @@ // using System.Diagnostics; -using OpenTelemetry.Exporter.Jaeger.Implementation; using Xunit; -namespace OpenTelemetry.Exporter.Jaeger.Tests.Implementation +namespace OpenTelemetry.Exporter.Jaeger.Implementation.Tests { public class Int128Test { diff --git a/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/JaegerActivityConversionTest.cs b/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/JaegerActivityConversionTest.cs index b691a66b5ec..1670e37876b 100644 --- a/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/JaegerActivityConversionTest.cs +++ b/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/JaegerActivityConversionTest.cs @@ -17,14 +17,12 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; - -using OpenTelemetry.Exporter.Jaeger.Implementation; using OpenTelemetry.Internal; using OpenTelemetry.Resources; using OpenTelemetry.Trace; using Xunit; -namespace OpenTelemetry.Exporter.Jaeger.Tests.Implementation +namespace OpenTelemetry.Exporter.Jaeger.Implementation.Tests { public class JaegerActivityConversionTest { diff --git a/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/ThriftUdpClientTransportTests.cs b/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/ThriftUdpClientTransportTests.cs index 730a4754d30..01764860d3d 100644 --- a/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/ThriftUdpClientTransportTests.cs +++ b/test/OpenTelemetry.Exporter.Jaeger.Tests/Implementation/ThriftUdpClientTransportTests.cs @@ -18,11 +18,10 @@ using System.Threading; using System.Threading.Tasks; using Moq; -using OpenTelemetry.Exporter.Jaeger.Implementation; using Thrift.Transport; using Xunit; -namespace OpenTelemetry.Exporter.Jaeger.Tests.Implementation +namespace OpenTelemetry.Exporter.Jaeger.Implementation.Tests { public class ThriftUdpClientTransportTests : IDisposable { diff --git a/test/OpenTelemetry.Exporter.Jaeger.Tests/JaegerExporterTests.cs b/test/OpenTelemetry.Exporter.Jaeger.Tests/JaegerExporterTests.cs index 6e301fb40c3..2fef9caf334 100644 --- a/test/OpenTelemetry.Exporter.Jaeger.Tests/JaegerExporterTests.cs +++ b/test/OpenTelemetry.Exporter.Jaeger.Tests/JaegerExporterTests.cs @@ -19,7 +19,7 @@ using System.Diagnostics; using System.Linq; using OpenTelemetry.Exporter.Jaeger.Implementation; -using OpenTelemetry.Exporter.Jaeger.Tests.Implementation; +using OpenTelemetry.Exporter.Jaeger.Implementation.Tests; using OpenTelemetry.Resources; using OpenTelemetry.Trace; using Thrift.Protocol; diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs index 832d163090a..94a13f28060 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs @@ -20,7 +20,6 @@ using System.Linq; using System.Reflection; using System.Threading; -using Google.Protobuf.Collections; using Grpc.Core; using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation; using OpenTelemetry.Resources; diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs index 8a2ab8de7d2..db112f92a90 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionExtensionsTest.cs @@ -19,7 +19,7 @@ using Xunit; using static OpenTelemetry.Exporter.Zipkin.Implementation.ZipkinActivityConversionExtensions; -namespace OpenTelemetry.Exporter.Zipkin.Tests.Implementation +namespace OpenTelemetry.Exporter.Zipkin.Implementation.Tests { public class ZipkinActivityConversionExtensionsTest { diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs index b1986e23f14..e422e31436a 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityConversionTest.cs @@ -15,12 +15,12 @@ // using System.Linq; -using OpenTelemetry.Exporter.Zipkin.Implementation; +using OpenTelemetry.Exporter.Zipkin.Tests; using OpenTelemetry.Internal; using OpenTelemetry.Trace; using Xunit; -namespace OpenTelemetry.Exporter.Zipkin.Tests.Implementation +namespace OpenTelemetry.Exporter.Zipkin.Implementation.Tests { public class ZipkinActivityConversionTest { diff --git a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs index 240e8daca4b..9d1aeb644f5 100644 --- a/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs +++ b/test/OpenTelemetry.Exporter.Zipkin.Tests/Implementation/ZipkinActivityExporterRemoteEndpointTests.cs @@ -15,11 +15,11 @@ // using System.Collections.Generic; -using OpenTelemetry.Exporter.Zipkin.Implementation; +using OpenTelemetry.Exporter.Zipkin.Tests; using OpenTelemetry.Trace; using Xunit; -namespace OpenTelemetry.Exporter.Zipkin.Tests.Implementation +namespace OpenTelemetry.Exporter.Zipkin.Implementation.Tests { public class ZipkinActivityExporterRemoteEndpointTests { diff --git a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs index dfd8ad2b77b..cce05338e77 100644 --- a/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs +++ b/test/OpenTelemetry.Instrumentation.AspNetCore.Tests/DependencyInjectionConfigTests.cs @@ -14,8 +14,6 @@ // limitations under the License. // -using System; -using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs index bfe23c2c71c..08c3e0290e1 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/GrpcTests.server.cs @@ -24,7 +24,7 @@ using Grpc.Net.Client; using Moq; using OpenTelemetry.Context.Propagation; -using OpenTelemetry.Instrumentation.Grpc.Tests.Services; +using OpenTelemetry.Instrumentation.Grpc.Services.Tests; using OpenTelemetry.Instrumentation.GrpcNetClient; using OpenTelemetry.Trace; using Xunit; diff --git a/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs b/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs index d2b60d5ae66..f7411f6a1a1 100644 --- a/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs +++ b/test/OpenTelemetry.Instrumentation.Grpc.Tests/Services/GreeterService.cs @@ -18,7 +18,7 @@ using Grpc.Core; using Microsoft.Extensions.Logging; -namespace OpenTelemetry.Instrumentation.Grpc.Tests.Services +namespace OpenTelemetry.Instrumentation.Grpc.Services.Tests { public class GreeterService : Greeter.GreeterBase { diff --git a/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs b/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs index f5047a1e5f1..387a9162623 100644 --- a/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs +++ b/test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs @@ -15,10 +15,9 @@ // using System; -using OpenTelemetry.Internal; using Xunit; -namespace OpenTelemetry.Tests.Internal +namespace OpenTelemetry.Internal.Tests { public class CircularBufferTest { diff --git a/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs b/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs index f0e40724e2d..29f6c2b3878 100644 --- a/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs +++ b/test/OpenTelemetry.Tests/Logs/LogRecordTest.cs @@ -23,10 +23,11 @@ using Microsoft.Extensions.Logging; using OpenTelemetry.Exporter; using OpenTelemetry.Logs; +using OpenTelemetry.Tests; using OpenTelemetry.Trace; using Xunit; -namespace OpenTelemetry.Tests.Logs +namespace OpenTelemetry.Logs.Tests { public sealed class LogRecordTest : IDisposable {