Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Jan 22, 2025
1 parent 822861b commit 24ab035
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/src/metrics/state/temporal_metric_storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool TemporalMetricStorage::buildMetrics(CollectorHandle *collector,
collector->GetAggregationTemporality(instrument_descriptor_.type_);

// Fast path for single collector with delta temporality and counter, updown-counter, histogram
// This path doesn't need to aggregated-with/contribute-to the unreported_metric_, as there is
// This path doesn't need to aggregated-with/contribute-to the unreported_metric_, as there is
// no other reader configured to collect those data.
if (collectors.size() == 1 && aggregation_temporarily == AggregationTemporality::kDelta)
{
Expand Down Expand Up @@ -80,7 +80,8 @@ bool TemporalMetricStorage::buildMetrics(CollectorHandle *collector,
return callback(metric_data);
}

if (delta_metrics->Size()) {
if (delta_metrics->Size())
{
for (auto &col : collectors)
{
unreported_metrics_[col.get()].push_back(delta_metrics);
Expand Down

0 comments on commit 24ab035

Please sign in to comment.