Commit ee3ddfb 1 parent 715e7ff commit ee3ddfb Copy full SHA for ee3ddfb
File tree 1 file changed +2
-2
lines changed
opentelemetry-stdout/src/metrics
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ impl<T: Into<DataValue> + Copy> From<&data::Sum<T>> for Sum {
230
230
#[ derive( Serialize , Debug , Clone ) ]
231
231
#[ serde( rename_all = "camelCase" ) ]
232
232
struct DataPoint {
233
- attributes : AttributeSet ,
233
+ attributes : Vec < KeyValue > ,
234
234
#[ serde( serialize_with = "as_opt_human_readable" ) ]
235
235
start_time : Option < SystemTime > ,
236
236
#[ serde( serialize_with = "as_opt_human_readable" ) ]
@@ -253,7 +253,7 @@ fn is_zero_u8(v: &u8) -> bool {
253
253
impl < T : Into < DataValue > + Copy > From < & data:: DataPoint < T > > for DataPoint {
254
254
fn from ( value : & data:: DataPoint < T > ) -> Self {
255
255
DataPoint {
256
- attributes : AttributeSet :: from ( & value. attributes ) ,
256
+ attributes : value. attributes . iter ( ) . map ( Into :: into ) . collect ( ) ,
257
257
start_time_unix_nano : value. start_time ,
258
258
time_unix_nano : value. time ,
259
259
start_time : value. start_time ,
You can’t perform that action at this time.
0 commit comments