Skip to content

Commit

Permalink
Expand OtlpMetricExporter tests (#2670)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest authored Nov 24, 2021
1 parent 794450b commit cabb847
Show file tree
Hide file tree
Showing 2 changed files with 294 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ internal static OtlpMetrics.Metric ToOtlpMetric(this Metric metric)
};

AddAttributes(metricPoint.Tags, dataPoint.Attributes);
dataPoint.Count = (ulong)metricPoint.LongValue;
dataPoint.Sum = metricPoint.DoubleValue;
dataPoint.Count = (ulong)metricPoint.GetHistogramCount();
dataPoint.Sum = metricPoint.GetHistogramSum();

foreach (var histogramMeasurement in metricPoint.GetHistogramBuckets())
{
Expand Down
Loading

0 comments on commit cabb847

Please sign in to comment.