[repo] Cleanup unused using statements (#4759)

This commit is contained in:
Mikel Blanchard 2023-08-09 11:07:37 -07:00 committed by GitHub
parent 10a898932a
commit 594d130ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 53 additions and 49 deletions

View File

@ -17,6 +17,9 @@ jobs:
with:
fetch-depth: 0 # fetching all
- name: Setup dotnet
uses: actions/setup-dotnet@v3
- name: Install dependencies
run: dotnet restore

View File

@ -24,6 +24,9 @@ jobs:
with:
fetch-depth: 0 # fetching all
- name: Setup dotnet
uses: actions/setup-dotnet@v3
- name: publish AOT testApp, assert static analysis warning count, and run the app
shell: pwsh
run: .\build\test-aot-compatibility.ps1 ${{ matrix.version }}

View File

@ -31,6 +31,9 @@ jobs:
with:
fetch-depth: 0 # fetching all
- name: Setup dotnet
uses: actions/setup-dotnet@v3
- name: Install dependencies
run: dotnet restore ./build/InstrumentationLibraries.proj

View File

@ -27,6 +27,9 @@ jobs:
with:
fetch-depth: 0 # fetching all
- name: Setup dotnet
uses: actions/setup-dotnet@v3
- name: Install dependencies
run: dotnet restore

View File

@ -24,6 +24,9 @@ jobs:
with:
fetch-depth: 0 # fetching all
- name: Setup dotnet
uses: actions/setup-dotnet@v3
- name: Install dependencies
run: dotnet restore

View File

@ -20,6 +20,9 @@ jobs:
- name: check out code
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
- name: Install format tool
run: dotnet tool install -g dotnet-format

View File

@ -44,8 +44,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{7CB2F02E
build\process-codecoverage.ps1 = build\process-codecoverage.ps1
build\RELEASING.md = build\RELEASING.md
build\stylecop.json = build\stylecop.json
build\xunit.runner.json = build\xunit.runner.json
build\test-aot-compatibility.ps1 = build\test-aot-compatibility.ps1
build\xunit.runner.json = build\xunit.runner.json
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenTelemetry.Exporter.Zipkin", "src\OpenTelemetry.Exporter.Zipkin\OpenTelemetry.Exporter.Zipkin.csproj", "{7EDAE7FA-B44E-42CA-80FA-7DF2FAA2C5DD}"
@ -97,6 +97,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
ProjectSection(SolutionItems) = preProject
.github\workflows\apicompatibility.yml = .github\workflows\apicompatibility.yml
.github\workflows\ci-aot.yml = .github\workflows\ci-aot.yml
.github\workflows\ci-instrumentation-libraries-md.yml = .github\workflows\ci-instrumentation-libraries-md.yml
.github\workflows\ci-instrumentation-libraries.yml = .github\workflows\ci-instrumentation-libraries.yml
.github\workflows\ci-md.yml = .github\workflows\ci-md.yml
.github\workflows\ci.yml = .github\workflows\ci.yml
.github\workflows\code-coverage.yml = .github\workflows\code-coverage.yml

View File

@ -6,6 +6,7 @@
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)debug.snk</AssemblyOriginatorKeyFile>
<DefineConstants>$(DefineConstants);SIGNED</DefineConstants>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!--temporarily disable. See 3958-->

View File

@ -6,4 +6,4 @@ services:
args:
PUBLISH_FRAMEWORK: net6.0
TEST_SDK_VERSION: "6.0"
BUILD_SDK_VERSION: "7.0.306"
BUILD_SDK_VERSION: "7.0"

View File

@ -6,4 +6,4 @@ services:
args:
PUBLISH_FRAMEWORK: net7.0
TEST_SDK_VERSION: "7.0"
BUILD_SDK_VERSION: "7.0.306"
BUILD_SDK_VERSION: "7.0"

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Diagnostics;
using OpenTelemetry.Metrics;
using OpenTelemetry.Resources;

View File

@ -14,12 +14,8 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;
using OpenTelemetry;
using OpenTelemetry.Exporter;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;

View File

@ -1,6 +1,6 @@
{
"sdk": {
"rollForward": "latestFeature",
"version": "7.0.101"
"version": "7.0.400"
}
}

View File

@ -14,7 +14,9 @@
// limitations under the License.
// </copyright>
#if NETFRAMEWORK
using System.Net.Http;
#endif
using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient;
using Xunit;

View File

@ -15,9 +15,8 @@
// </copyright>
using System.Diagnostics;
using System.Net.Http;
#if !NET6_0_OR_GREATER
using System.Threading.Tasks;
using System.Net.Http;
#endif
using Moq;
using Moq.Protected;

View File

@ -15,11 +15,7 @@
// </copyright>
#if !NETFRAMEWORK
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Grpc.Core;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@ -69,13 +65,13 @@ public sealed class MockCollectorIntegrationTests
}))
.StartAsync().ConfigureAwait(false);
var httpClient = new HttpClient() { BaseAddress = new System.Uri("http://localhost:5050") };
var httpClient = new HttpClient() { BaseAddress = new Uri("http://localhost:5050") };
var codes = new[] { Grpc.Core.StatusCode.Unimplemented, Grpc.Core.StatusCode.OK };
await httpClient.GetAsync($"/MockCollector/SetResponseCodes/{string.Join(",", codes.Select(x => (int)x))}").ConfigureAwait(false);
var exportResults = new List<ExportResult>();
var otlpExporter = new OtlpTraceExporter(new OtlpExporterOptions() { Endpoint = new System.Uri("http://localhost:4317") });
var otlpExporter = new OtlpTraceExporter(new OtlpExporterOptions() { Endpoint = new Uri("http://localhost:4317") });
var delegatingExporter = new DelegatingExporter<Activity>
{
OnExportFunc = (batch) =>

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using Grpc.Core;
using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient;
using Xunit;
using Xunit.Sdk;

View File

@ -14,7 +14,6 @@
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Reflection;

View File

@ -15,9 +15,6 @@
// </copyright>
using System.Diagnostics.Metrics;
#if NETFRAMEWORK
using System.Linq;
#endif
using OpenTelemetry.Metrics;
using OpenTelemetry.Tests;
using Xunit;

View File

@ -16,7 +16,9 @@
using System.Diagnostics.Metrics;
using System.Net;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using OpenTelemetry.Metrics;
using OpenTelemetry.Tests;
using Xunit;

View File

@ -17,7 +17,9 @@
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Net;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Text;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

View File

@ -16,11 +16,8 @@
#if NET6_0_OR_GREATER
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;

View File

@ -14,7 +14,9 @@
// limitations under the License.
// </copyright>
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Net.Http.Headers;
using Google.Protobuf;
using Grpc.Net.Compression;

View File

@ -17,7 +17,9 @@
using System.Buffers.Binary;
using System.Diagnostics;
using System.Net;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Net.Http.Headers;
namespace OpenTelemetry.Instrumentation.Grpc.Tests.GrpcTestHelpers;

View File

@ -14,7 +14,9 @@
// limitations under the License.
// </copyright>
#if NETFRAMEWORK
using System.Net.Http;
#endif
namespace OpenTelemetry.Instrumentation.Grpc.Tests.GrpcTestHelpers;

View File

@ -14,7 +14,9 @@
// limitations under the License.
// </copyright>
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Net.Http.Headers;
namespace OpenTelemetry.Instrumentation.Grpc.Tests.GrpcTestHelpers;

View File

@ -17,12 +17,16 @@
using System.Diagnostics;
using System.Net;
using Greet;
#if !NETFRAMEWORK
using Grpc.Core;
#endif
using Grpc.Net.Client;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Moq;
#if !NETFRAMEWORK
using OpenTelemetry.Context.Propagation;
#endif
using OpenTelemetry.Instrumentation.Grpc.Tests.GrpcTestHelpers;
using OpenTelemetry.Instrumentation.GrpcNetClient;
using OpenTelemetry.Instrumentation.GrpcNetClient.Implementation;

View File

@ -17,8 +17,8 @@
using System.Diagnostics;
#if NETFRAMEWORK
using System.Net;
#endif
using System.Net.Http;
#endif
using Microsoft.Extensions.DependencyInjection;
using Moq;
using OpenTelemetry.Context.Propagation;

View File

@ -15,7 +15,9 @@
// </copyright>
using System.Diagnostics;
#if NETFRAMEWORK
using System.Net.Http;
#endif
using System.Reflection;
using System.Text.Json;
using Moq;

View File

@ -15,16 +15,10 @@
// </copyright>
#if NETFRAMEWORK
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Instrumentation.Http.Implementation;
using OpenTelemetry.Tests;
using OpenTelemetry.Trace;

View File

@ -15,16 +15,10 @@
// </copyright>
#if NETFRAMEWORK
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using OpenTelemetry.Instrumentation.Http.Implementation;
using OpenTelemetry.Tests;

View File

@ -15,16 +15,10 @@
// </copyright>
#if NETFRAMEWORK
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using OpenTelemetry.Instrumentation.Http.Implementation;
using OpenTelemetry.Tests;

View File

@ -16,9 +16,6 @@
using System.Diagnostics;
using System.Net;
#if !NETFRAMEWORK
using System.Net.Http;
#endif
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Moq;

View File

@ -14,7 +14,9 @@
// limitations under the License.
// </copyright>
#if NETFRAMEWORK
using System.Net.Http;
#endif
namespace OpenTelemetry.Tests;

View File

@ -19,7 +19,9 @@ using System.Diagnostics;
using Microsoft.Data.SqlClient;
using Microsoft.Extensions.DependencyInjection;
using OpenTelemetry.Instrumentation.SqlClient.Implementation;
#if !NETFRAMEWORK
using OpenTelemetry.Tests;
#endif
using OpenTelemetry.Trace;
using Xunit;

View File

@ -15,12 +15,10 @@
// </copyright>
#if NETFRAMEWORK
using System;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Diagnostics.Tracing;
using System.Threading.Tasks;
using Moq;
using OpenTelemetry.Instrumentation.SqlClient.Implementation;
using OpenTelemetry.Tests;