@@ -76,7 +76,7 @@ MetricProducer::Result MetricCollector::Produce() noexcept
7676 ScopeMetrics scope_metrics;
7777 scope_metrics.metric_data_ = std::move (metric_data);
7878 scope_metrics.scope_ = meter->GetInstrumentationScope ();
79- if (!this -> metric_filter_ )
79+ if (!metric_filter_)
8080 {
8181 resource_metrics.scope_metric_data_ .emplace_back (std::move (scope_metrics));
8282 return true ;
@@ -93,7 +93,7 @@ MetricProducer::Result MetricCollector::Produce() noexcept
9393 opentelemetry::nostd::string_view unit = metric.instrument_descriptor .unit_ ;
9494
9595 MetricFilter::MetricFilterResult metric_filter_result =
96- this -> metric_filter_ ->TestMetric (scope, name, type, unit);
96+ metric_filter_->TestMetric (scope, name, type, unit);
9797 if (metric_filter_result == MetricFilter::MetricFilterResult::kAccept )
9898 {
9999 filtered_scope_metrics.metric_data_ .emplace_back (std::move (metric));
@@ -109,7 +109,7 @@ MetricProducer::Result MetricCollector::Produce() noexcept
109109 {
110110 const PointAttributes &attributes = point_data_attr.attributes ;
111111 MetricFilter::AttributesFilterResult attributes_filter_result =
112- this -> metric_filter_ ->TestAttributes (scope, name, type, unit, attributes);
112+ metric_filter_->TestAttributes (scope, name, type, unit, attributes);
113113 if (attributes_filter_result == MetricFilter::AttributesFilterResult::kAccept )
114114 {
115115 filtered_point_data_attrs.emplace_back (std::move (point_data_attr));
0 commit comments