Commit 5c842a8 1 parent 89e2a64 commit 5c842a8 Copy full SHA for 5c842a8
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 @@ -284,7 +284,7 @@ impl<T: Into<DataValue> + Copy> From<&data::Histogram<T>> for Histogram {
284
284
#[ derive( Serialize , Debug , Clone ) ]
285
285
#[ serde( rename_all = "camelCase" ) ]
286
286
struct HistogramDataPoint {
287
- attributes : AttributeSet ,
287
+ attributes : Vec < KeyValue > ,
288
288
#[ serde( serialize_with = "as_unix_nano" ) ]
289
289
start_time_unix_nano : SystemTime ,
290
290
#[ serde( serialize_with = "as_unix_nano" ) ]
@@ -306,7 +306,7 @@ struct HistogramDataPoint {
306
306
impl < T : Into < DataValue > + Copy > From < & data:: HistogramDataPoint < T > > for HistogramDataPoint {
307
307
fn from ( value : & data:: HistogramDataPoint < T > ) -> Self {
308
308
HistogramDataPoint {
309
- attributes : AttributeSet :: from ( & value. attributes ) ,
309
+ attributes : value. attributes . iter ( ) . map ( Into :: into ) . collect ( ) ,
310
310
start_time_unix_nano : value. start_time ,
311
311
time_unix_nano : value. time ,
312
312
start_time : value. start_time ,
You can’t perform that action at this time.
0 commit comments