Skip to content

Commit

Permalink
cosmetic [code format]
Browse files Browse the repository at this point in the history
  • Loading branch information
ays7 committed Jan 3, 2023
1 parent 401fcb8 commit 711b2ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sdk/src/metrics/state/metric_collector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ bool MetricCollector::Collect(
ResourceMetrics resource_metrics;
meter_context_->ForEachMeter([&](std::shared_ptr<Meter> meter) noexcept {
auto collection_ts = std::chrono::system_clock::now();
auto metric_data = meter->Collect(this, collection_ts);
if (!metric_data.empty ())
auto metric_data = meter->Collect(this, collection_ts);
if (!metric_data.empty())
{
ScopeMetrics scope_metrics;
scope_metrics.metric_data_ = std::move (metric_data);
scope_metrics.metric_data_ = std::move(metric_data);
scope_metrics.scope_ = meter->GetInstrumentationScope();
resource_metrics.scope_metric_data_.emplace_back(std::move (scope_metrics));
resource_metrics.scope_metric_data_.emplace_back(std::move(scope_metrics));
}
return true;
});
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/metrics/state/temporal_metric_storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool TemporalMetricStorage::buildMetrics(CollectorHandle *collector,
PointDataAttributes point_data_attr;
point_data_attr.point_data = aggregation.ToPoint();
point_data_attr.attributes = attributes;
metric_data.point_data_attr_.emplace_back(std::move (point_data_attr));
metric_data.point_data_attr_.emplace_back(std::move(point_data_attr));
return true;
});
return callback(metric_data);
Expand Down

0 comments on commit 711b2ba

Please sign in to comment.