Skip to content

Commit

Permalink
Not using metric identifier to get metric object. (#9082)
Browse files Browse the repository at this point in the history
  • Loading branch information
agr committed Mar 31, 2022
1 parent 03457f9 commit a0666d8
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,7 @@ public void TrackAggregatedMetric(string metricName, double value, string dimens
{
try
{
var metricIdentifier = new MetricIdentifier(
metricNamespace: "Gallery",
metricId: metricName,
dimensionNames: new List<string>
{
dimension0Name
});
var metric = UnderlyingClient.GetMetric(metricIdentifier);
var metric = UnderlyingClient.GetMetric(metricName, dimension0Name);
metric.TrackValue(value, dimension0Value);
}
catch
Expand Down

0 comments on commit a0666d8

Please sign in to comment.