File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
opentelemetry-sdk/src/metrics/internal Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ where
141
141
}
142
142
143
143
/// Iterate through all attribute sets and populate `DataPoints` in readonly mode.
144
+ /// This is used in Cumulative temporality mode, where [`ValueMap`] is not cleared.
144
145
pub ( crate ) fn collect_readonly < Res , MapFn > ( & self , dest : & mut Vec < Res > , mut map_fn : MapFn )
145
146
where
146
147
MapFn : FnMut ( Vec < KeyValue > , & A ) -> Res ,
@@ -162,7 +163,8 @@ where
162
163
}
163
164
}
164
165
165
- /// Iterate through all attribute sets, populate `DataPoints` and and reset.
166
+ /// Iterate through all attribute sets, populate `DataPoints` and reset.
167
+ /// This is used in Delta temporality mode, where [`ValueMap`] is reset after collection.
166
168
pub ( crate ) fn collect_and_reset < Res , MapFn > ( & self , dest : & mut Vec < Res > , mut map_fn : MapFn )
167
169
where
168
170
MapFn : FnMut ( Vec < KeyValue > , A ) -> Res ,
You can’t perform that action at this time.
0 commit comments