Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

using OpenTelemetry.AutoInstrumentation.Configurations.FileBasedConfiguration.Parser;
using OpenTelemetry.Metrics;
using Vendors.YamlDotNet.Serialization;

namespace OpenTelemetry.AutoInstrumentation.Configurations.FileBasedConfiguration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

using System.Collections;
using System.Diagnostics;
using System.Linq.Expressions;
using System.Reflection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
using OpenTelemetry.AutoInstrumentation.DuckTyping;
using OpenTelemetry.AutoInstrumentation.Instrumentations.NLog.TraceContextInjection;
using OpenTelemetry.AutoInstrumentation.Logging;
using OpenTelemetry.Logs;
#if NET
using OpenTelemetry.AutoInstrumentation.Logger; // Only needed for LoggerInitializer
#endif
using OpenTelemetry.Logs;
using Exception = System.Exception;

namespace OpenTelemetry.AutoInstrumentation.Instrumentations.NLog.Bridge;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0

using OpenTelemetry.AutoInstrumentation.CallTarget;
using OpenTelemetry.AutoInstrumentation.Configurations;

namespace OpenTelemetry.AutoInstrumentation.Instrumentations.StackExchangeRedis;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

using OpenTelemetry.AutoInstrumentation.Configurations;
using OpenTelemetry.AutoInstrumentation.Plugins;

namespace OpenTelemetry.AutoInstrumentation.Loading.Initializers;
Expand Down
5 changes: 5 additions & 0 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<NoWarn>$(NoWarn);CA1707</NoWarn>
</PropertyGroup>

<ItemGroup>
<Using Include="Xunit" />
<Using Include="Xunit.Abstractions" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NSubstitute" />
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/AdoNetStubTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Common.V1;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/AspNetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#if NETFRAMEWORK
using System.Net.Http;
using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/AssemblyRedirectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/AzureTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Collector.Profiles.V1Development;
using OpenTelemetry.Proto.Profiles.V1Development;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
#if NET
using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/ContinuousProfilerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Collector.Profiles.V1Development;
using OpenTelemetry.Proto.Profiles.V1Development;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/CustomSdkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Google.Protobuf;
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/DomainNeutralTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#if NETFRAMEWORK
using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/DotNetCliTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#if NET

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/ElasticsearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/EntityFrameworkCoreNpgsqlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#if NET

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#if NET

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/EntityFrameworkCoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#if NET

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/GraphQLTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Text;
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/GrpcNetClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0

using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/EnvironmentHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
2 changes: 0 additions & 2 deletions test/IntegrationTests/Helpers/FirewallHelper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

internal static class FirewallHelper
Expand Down
2 changes: 0 additions & 2 deletions test/IntegrationTests/Helpers/FirewallPort.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

internal sealed class FirewallPort : IDisposable
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/HealthzHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#if NETFRAMEWORK
using System.Net.Http;
#endif
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using OpenTelemetry.Proto.Collector.Trace.V1;
using OpenTelemetry.Proto.Logs.V1;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/MockLogsCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Text;
using OpenTelemetry.Proto.Collector.Logs.V1;
using OpenTelemetry.Proto.Logs.V1;
using Xunit.Abstractions;
#if NETFRAMEWORK
using System.Net;
#else
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/MockMetricsCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Text;
using OpenTelemetry.Proto.Collector.Metrics.V1;
using OpenTelemetry.Proto.Metrics.V1;
using Xunit.Abstractions;

#if NETFRAMEWORK
using System.Net;
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/MockOpAmpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using System.Text;
using Google.Protobuf;
using OpAmp.Proto.V1;
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/MockProfilesCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Text;
using OpenTelemetry.Proto.Collector.Profiles.V1Development;
using OpenTelemetry.Proto.Profiles.V1Development;
using Xunit.Abstractions;

#if NETFRAMEWORK
using System.Net;
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/MockSpansCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using OpenTelemetry.Proto.Collector.Trace.V1;
using OpenTelemetry.Proto.Common.V1;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

#if NETFRAMEWORK
using System.Net;
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/MockZipkinCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Xunit.Abstractions;

#if NETFRAMEWORK
using System.Net;
Expand Down
2 changes: 0 additions & 2 deletions test/IntegrationTests/Helpers/OutputHelper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

internal static class OutputHelper
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/PowershellHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0

using System.Diagnostics;
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Helpers/TestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.Diagnostics;
using System.Reflection;
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#if NETFRAMEWORK

using System.Net;
using Xunit.Abstractions;

namespace IntegrationTests.Helpers;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/HttpNetFrameworkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#if NETFRAMEWORK
using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/HttpTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#if NET
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/IISContainerTestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using DotNet.Testcontainers.Builders;
using DotNet.Testcontainers.Containers;
using IntegrationTests.Helpers;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/KafkaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Common.V1;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/Log4NetBridgeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Google.Protobuf;
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Logs.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/LogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Globalization;
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Logs.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/MassTransitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#if NET
using IntegrationTests.Helpers;
using Xunit.Abstractions;
using static OpenTelemetry.Proto.Trace.V1.Span.Types;

namespace IntegrationTests;
Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/MinimalApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Globalization;
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Logs.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/ModuleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Newtonsoft.Json;
using OpenTelemetry.AutoInstrumentation;
using OpenTelemetry.AutoInstrumentation.Configurations;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
1 change: 0 additions & 1 deletion test/IntegrationTests/MongoDBTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using IntegrationTests.Helpers;
using OpenTelemetry.Proto.Common.V1;
using OpenTelemetry.Proto.Trace.V1;
using Xunit.Abstractions;

namespace IntegrationTests;

Expand Down
Loading
Loading