Skip to content

Commit

Permalink
name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Ting committed Oct 10, 2022
1 parent c27b0d9 commit ec9a430
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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));
}
Expand Down

0 comments on commit ec9a430

Please sign in to comment.