2
2
///
3
3
/// This includes a list of any new async ops, and updates to the associated statistics
4
4
/// for any async ops that have changed since the last update.
5
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
5
6
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
6
7
pub struct AsyncOpUpdate {
7
8
/// A list of new async operations that were created since the last `AsyncOpUpdate`
8
9
/// was sent. Note that the fact that an async operation has been created
9
10
/// does not mean that is has been polled or is being polled. This information
10
11
/// is reflected in the `Stats` of the operation.
11
- #[ prost( message, repeated, tag= "1" ) ]
12
+ #[ prost( message, repeated, tag = "1" ) ]
12
13
pub new_async_ops : :: prost:: alloc:: vec:: Vec < AsyncOp > ,
13
14
/// Any async op stats that have changed since the last update.
14
- #[ prost( map= "uint64, message" , tag= "2" ) ]
15
+ #[ prost( map = "uint64, message" , tag = "2" ) ]
15
16
pub stats_update : :: std:: collections:: HashMap < u64 , Stats > ,
16
17
/// A count of how many async op events (e.g. polls, creation, etc) were not
17
18
/// recorded because the application's event buffer was at capacity.
@@ -23,32 +24,33 @@ pub struct AsyncOpUpdate {
23
24
///
24
25
/// If the application's instrumentation ensures reliable delivery of events,
25
26
/// this will always be 0.
26
- #[ prost( uint64, tag= "3" ) ]
27
+ #[ prost( uint64, tag = "3" ) ]
27
28
pub dropped_events : u64 ,
28
29
}
29
30
/// An async operation.
30
31
///
31
32
/// An async operation is an operation that is associated with a resource
32
33
/// This could, for example, be a a read or write on a TCP stream, or a receive operation on
33
34
/// a channel.
35
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
34
36
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
35
37
pub struct AsyncOp {
36
38
/// The async op's ID.
37
39
///
38
40
/// This uniquely identifies this op across all *currently live*
39
41
/// ones.
40
- #[ prost( message, optional, tag= "1" ) ]
42
+ #[ prost( message, optional, tag = "1" ) ]
41
43
pub id : :: core:: option:: Option < super :: common:: Id > ,
42
44
/// The numeric ID of the op's `Metadata`.
43
45
///
44
46
/// This identifies the `Metadata` that describes the `tracing` span
45
47
/// corresponding to this async op. The metadata for this ID will have been sent
46
48
/// in a prior `RegisterMetadata` message.
47
- #[ prost( message, optional, tag= "2" ) ]
49
+ #[ prost( message, optional, tag = "2" ) ]
48
50
pub metadata : :: core:: option:: Option < super :: common:: MetaId > ,
49
51
/// The source of this async operation. Most commonly this should be the name
50
52
/// of the method where the instantiation of this op has happened.
51
- #[ prost( string, tag= "3" ) ]
53
+ #[ prost( string, tag = "3" ) ]
52
54
pub source : :: prost:: alloc:: string:: String ,
53
55
/// The ID of the parent async op.
54
56
///
@@ -58,28 +60,29 @@ pub struct AsyncOp {
58
60
///
59
61
/// This field can be empty; if it is empty, this async op is not a child of another
60
62
/// async op.
61
- #[ prost( message, optional, tag= "4" ) ]
63
+ #[ prost( message, optional, tag = "4" ) ]
62
64
pub parent_async_op_id : :: core:: option:: Option < super :: common:: Id > ,
63
65
/// The resources's ID.
64
- #[ prost( message, optional, tag= "5" ) ]
66
+ #[ prost( message, optional, tag = "5" ) ]
65
67
pub resource_id : :: core:: option:: Option < super :: common:: Id > ,
66
68
}
67
69
/// Statistics associated with a given async operation.
70
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
68
71
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
69
72
pub struct Stats {
70
73
/// Timestamp of when the async op has been created.
71
- #[ prost( message, optional, tag= "1" ) ]
74
+ #[ prost( message, optional, tag = "1" ) ]
72
75
pub created_at : :: core:: option:: Option < :: prost_types:: Timestamp > ,
73
76
/// Timestamp of when the async op was dropped.
74
- #[ prost( message, optional, tag= "2" ) ]
77
+ #[ prost( message, optional, tag = "2" ) ]
75
78
pub dropped_at : :: core:: option:: Option < :: prost_types:: Timestamp > ,
76
79
/// The Id of the task that is awaiting on this op.
77
- #[ prost( message, optional, tag= "4" ) ]
80
+ #[ prost( message, optional, tag = "4" ) ]
78
81
pub task_id : :: core:: option:: Option < super :: common:: Id > ,
79
82
/// Contains the operation poll stats.
80
- #[ prost( message, optional, tag= "5" ) ]
83
+ #[ prost( message, optional, tag = "5" ) ]
81
84
pub poll_stats : :: core:: option:: Option < super :: common:: PollStats > ,
82
85
/// State attributes of the async op.
83
- #[ prost( message, repeated, tag= "6" ) ]
86
+ #[ prost( message, repeated, tag = "6" ) ]
84
87
pub attributes : :: prost:: alloc:: vec:: Vec < super :: common:: Attribute > ,
85
88
}
0 commit comments