@@ -76,7 +76,7 @@ MetricProducer::Result MetricCollector::Produce() noexcept
76
76
ScopeMetrics scope_metrics;
77
77
scope_metrics.metric_data_ = std::move (metric_data);
78
78
scope_metrics.scope_ = meter->GetInstrumentationScope ();
79
- if (!this -> metric_filter_ )
79
+ if (!metric_filter_)
80
80
{
81
81
resource_metrics.scope_metric_data_ .emplace_back (std::move (scope_metrics));
82
82
return true ;
@@ -93,7 +93,7 @@ MetricProducer::Result MetricCollector::Produce() noexcept
93
93
opentelemetry::nostd::string_view unit = metric.instrument_descriptor .unit_ ;
94
94
95
95
MetricFilter::MetricFilterResult metric_filter_result =
96
- this -> metric_filter_ ->TestMetric (scope, name, type, unit);
96
+ metric_filter_->TestMetric (scope, name, type, unit);
97
97
if (metric_filter_result == MetricFilter::MetricFilterResult::kAccept )
98
98
{
99
99
filtered_scope_metrics.metric_data_ .emplace_back (std::move (metric));
@@ -109,7 +109,7 @@ MetricProducer::Result MetricCollector::Produce() noexcept
109
109
{
110
110
const PointAttributes &attributes = point_data_attr.attributes ;
111
111
MetricFilter::AttributesFilterResult attributes_filter_result =
112
- this -> metric_filter_ ->TestAttributes (scope, name, type, unit, attributes);
112
+ metric_filter_->TestAttributes (scope, name, type, unit, attributes);
113
113
if (attributes_filter_result == MetricFilter::AttributesFilterResult::kAccept )
114
114
{
115
115
filtered_point_data_attrs.emplace_back (std::move (point_data_attr));
0 commit comments