File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments