1
1
// Copyright 2023-Present Datadog, Inc. https://www.datadoghq.com/
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
- #[ derive( Eq , Hash , PartialEq , :: prost:: Message ) ]
4
+ pub use :: prost:: Message ;
5
+
6
+ #[ derive( Eq , Hash , PartialEq , Message ) ]
5
7
pub struct Profile {
6
8
#[ prost( message, repeated, tag = "1" ) ]
7
9
pub sample_types : Vec < ValueType > ,
@@ -33,7 +35,7 @@ pub struct Profile {
33
35
pub default_sample_type : i64 ,
34
36
}
35
37
36
- #[ derive( Clone , Eq , Hash , PartialEq , PartialOrd , Ord , :: prost :: Message ) ]
38
+ #[ derive( Clone , Eq , Hash , PartialEq , PartialOrd , Ord , Message ) ]
37
39
pub struct Sample {
38
40
#[ prost( uint64, repeated, tag = "1" ) ]
39
41
pub location_ids : Vec < u64 > ,
@@ -43,15 +45,15 @@ pub struct Sample {
43
45
pub labels : Vec < Label > ,
44
46
}
45
47
46
- #[ derive( Copy , Clone , Eq , PartialEq , Hash , :: prost :: Message ) ]
48
+ #[ derive( Copy , Clone , Eq , PartialEq , Hash , Message ) ]
47
49
pub struct ValueType {
48
50
#[ prost( int64, tag = "1" ) ]
49
51
pub r#type : i64 , // Index into string table
50
52
#[ prost( int64, tag = "2" ) ]
51
53
pub unit : i64 , // Index into string table
52
54
}
53
55
54
- #[ derive( Clone , Eq , PartialEq , Hash , PartialOrd , Ord , :: prost :: Message ) ]
56
+ #[ derive( Clone , Eq , PartialEq , Hash , PartialOrd , Ord , Message ) ]
55
57
pub struct Label {
56
58
#[ prost( int64, tag = "1" ) ]
57
59
pub key : i64 , // Index into string table
@@ -63,7 +65,7 @@ pub struct Label {
63
65
pub num_unit : i64 ,
64
66
}
65
67
66
- #[ derive( Copy , Clone , Eq , PartialEq , Hash , :: prost :: Message ) ]
68
+ #[ derive( Copy , Clone , Eq , PartialEq , Hash , Message ) ]
67
69
pub struct Mapping {
68
70
#[ prost( uint64, tag = "1" ) ]
69
71
pub id : u64 ,
@@ -87,7 +89,7 @@ pub struct Mapping {
87
89
pub has_inline_frames : bool ,
88
90
}
89
91
90
- #[ derive( Clone , Eq , PartialEq , Hash , :: prost :: Message ) ]
92
+ #[ derive( Clone , Eq , PartialEq , Hash , Message ) ]
91
93
pub struct Location {
92
94
#[ prost( uint64, tag = "1" ) ]
93
95
pub id : u64 ,
@@ -101,15 +103,15 @@ pub struct Location {
101
103
pub is_folded : bool ,
102
104
}
103
105
104
- #[ derive( Copy , Clone , Eq , PartialEq , Hash , :: prost :: Message ) ]
106
+ #[ derive( Copy , Clone , Eq , PartialEq , Hash , Message ) ]
105
107
pub struct Line {
106
108
#[ prost( uint64, tag = "1" ) ]
107
109
pub function_id : u64 ,
108
110
#[ prost( int64, tag = "2" ) ]
109
111
pub line : i64 ,
110
112
}
111
113
112
- #[ derive( Copy , Clone , Eq , PartialEq , Hash , :: prost :: Message ) ]
114
+ #[ derive( Copy , Clone , Eq , PartialEq , Hash , Message ) ]
113
115
pub struct Function {
114
116
#[ prost( uint64, tag = "1" ) ]
115
117
pub id : u64 ,
0 commit comments