Skip to content

Commit f84a896

Browse files
committed
Fix formatting
1 parent 855f86d commit f84a896

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

sdk/src/metrics/state/metric_collector.cc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ AggregationTemporality MetricCollector::GetAggregationTemporality(
3636
InstrumentType instrument_type) noexcept
3737
{
3838
auto aggregation_temporality = metric_reader_->GetAggregationTemporality(instrument_type);
39-
if(aggregation_temporality == AggregationTemporality::kDelta && instrument_type == InstrumentType::kGauge) {
40-
OTEL_INTERNAL_LOG_ERROR("[MetricCollector::GetAggregationTemporality] - Error getting aggregation temporality."
41-
<< "Delta temporality for Synchronous Gauge is currently not supported, using cumulative temporality");
42-
39+
if (aggregation_temporality == AggregationTemporality::kDelta &&
40+
instrument_type == InstrumentType::kGauge)
41+
{
42+
OTEL_INTERNAL_LOG_ERROR(
43+
"[MetricCollector::GetAggregationTemporality] - Error getting aggregation temporality."
44+
<< "Delta temporality for Synchronous Gauge is currently not supported, using cumulative "
45+
"temporality");
46+
4347
return AggregationTemporality::kCumulative;
4448
}
4549
return aggregation_temporality;

0 commit comments

Comments
 (0)