File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
opentelemetry-sdk/src/metrics Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ pub fn new_view(criteria: Instrument, mask: Stream) -> MetricResult<Box<dyn View
103103 return Ok ( Box :: new ( empty_view) ) ;
104104 }
105105 let contains_wildcard = criteria. name . contains ( [ '*' , '?' ] ) ;
106- let err_msg_criteria = criteria. clone ( ) ;
107106
108107 let match_fn: Box < dyn Fn ( & Instrument ) -> bool + Send + Sync > = if contains_wildcard {
109108 if mask. name != "" {
@@ -130,7 +129,7 @@ pub fn new_view(criteria: Instrument, mask: Stream) -> MetricResult<Box<dyn View
130129 if let Some ( ma) = & mask. aggregation {
131130 match ma. validate ( ) {
132131 Ok ( _) => agg = Some ( ma. clone ( ) ) ,
133- Err ( err ) => {
132+ Err ( _ ) => {
134133 // TODO - The error is getting lost here. Need to return or log.
135134 return Ok ( Box :: new ( empty_view) ) ;
136135 }
You can’t perform that action at this time.
0 commit comments