Skip to content

Commit a0666d8

Browse files
authored
Not using metric identifier to get metric object. (#9082)
1 parent 03457f9 commit a0666d8

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/NuGetGallery.Services/Telemetry/TelemetryClientWrapper.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,7 @@ public void TrackAggregatedMetric(string metricName, double value, string dimens
6363
{
6464
try
6565
{
66-
var metricIdentifier = new MetricIdentifier(
67-
metricNamespace: "Gallery",
68-
metricId: metricName,
69-
dimensionNames: new List<string>
70-
{
71-
dimension0Name
72-
});
73-
var metric = UnderlyingClient.GetMetric(metricIdentifier);
66+
var metric = UnderlyingClient.GetMetric(metricName, dimension0Name);
7467
metric.TrackValue(value, dimension0Value);
7568
}
7669
catch

0 commit comments

Comments
 (0)