From ec9a4304a5c70c23298fabd671ba47cf081bb170 Mon Sep 17 00:00:00 2001 From: Yun-Ting Date: Mon, 10 Oct 2022 12:13:19 -0700 Subject: [PATCH] name --- .../ProcessMetricsTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/OpenTelemetry.Instrumentation.Process.Tests/ProcessMetricsTests.cs b/test/OpenTelemetry.Instrumentation.Process.Tests/ProcessMetricsTests.cs index 5936e950c9..cc896a095c 100644 --- a/test/OpenTelemetry.Instrumentation.Process.Tests/ProcessMetricsTests.cs +++ b/test/OpenTelemetry.Instrumentation.Process.Tests/ProcessMetricsTests.cs @@ -80,13 +80,13 @@ public void UnifiedMetricStreamIdentityWhen2MeterProviderInstancesHaveTheSameMet Meter m2 = new("myMeter"); m1.CreateObservableCounter( - "myGaugeName", + "myCounterName", () => { return 1D; }, unit: "1", description: "test"); m2.CreateObservableCounter( - "myGaugeName", + "myCounterName", () => { return 2D; }, unit: "1", description: "test"); @@ -104,8 +104,8 @@ public void UnifiedMetricStreamIdentityWhen2MeterProviderInstancesHaveTheSameMet meterProviderA.ForceFlush(); meterProviderB.ForceFlush(); - var metricA = exportedItemsA.FirstOrDefault(i => i.Name == "myGaugeName"); - var metricB = exportedItemsB.FirstOrDefault(i => i.Name == "myGaugeName"); + var metricA = exportedItemsA.FirstOrDefault(i => i.Name == "myCounterName"); + var metricB = exportedItemsB.FirstOrDefault(i => i.Name == "myCounterName"); Assert.Equal(GetValue(metricA), GetValue(metricB)); }