From a2a8061ccf1275ab4f7f50ec01652e3d4fb980cf Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Mon, 15 Nov 2021 09:49:16 -0800 Subject: [PATCH] Avoid alias for InMemoryExporter (#2609) --- test/Benchmarks/Benchmarks.csproj | 10 +++++----- .../Exporter/PrometheusSerializerBenchmarks.cs | 5 ++--- test/Benchmarks/Metrics/MetricsBenchmarks.cs | 4 +--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/test/Benchmarks/Benchmarks.csproj b/test/Benchmarks/Benchmarks.csproj index 0f2cc28b2dd..429be9b9b63 100644 --- a/test/Benchmarks/Benchmarks.csproj +++ b/test/Benchmarks/Benchmarks.csproj @@ -18,11 +18,11 @@ - - - - - + + + + + diff --git a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs index a6a125cf0a5..65b58caa811 100644 --- a/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs +++ b/test/Benchmarks/Exporter/PrometheusSerializerBenchmarks.cs @@ -14,18 +14,17 @@ // limitations under the License. // -extern alias InMemory; +extern alias Prometheus; using System; using System.Collections.Generic; using System.Diagnostics.Metrics; using System.IO; using BenchmarkDotNet.Attributes; -using InMemory::OpenTelemetry.Metrics; using OpenTelemetry; -using OpenTelemetry.Exporter.Prometheus; using OpenTelemetry.Metrics; using OpenTelemetry.Tests; +using Prometheus::OpenTelemetry.Exporter.Prometheus; namespace Benchmarks.Exporter { diff --git a/test/Benchmarks/Metrics/MetricsBenchmarks.cs b/test/Benchmarks/Metrics/MetricsBenchmarks.cs index f958197ea86..472fc8ab7f6 100644 --- a/test/Benchmarks/Metrics/MetricsBenchmarks.cs +++ b/test/Benchmarks/Metrics/MetricsBenchmarks.cs @@ -14,15 +14,13 @@ // limitations under the License. // -extern alias InMemory; - using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Metrics; using BenchmarkDotNet.Attributes; -using InMemory::OpenTelemetry.Exporter; using OpenTelemetry; +using OpenTelemetry.Exporter; using OpenTelemetry.Metrics; using OpenTelemetry.Tests;