@@ -41,6 +41,13 @@ message Resource {
41
41
Kind kind = 4 ;
42
42
// The location in code where the resource was created.
43
43
common.Location location = 5 ;
44
+ // The ID of the parent resource.
45
+ common.Id parent_resource_id = 6 ;
46
+ // Is the resource an internal component of another resource?
47
+ //
48
+ // For example, a `tokio::time::Interval` resource might contain a
49
+ // `tokio::time::Sleep` resource internally.
50
+ bool is_internal = 7 ;
44
51
45
52
// The kind of resource (e.g. timer, mutex).
46
53
message Kind {
@@ -70,16 +77,7 @@ message Stats {
70
77
// have permits as an attribute. These values may change over time as the state of
71
78
// the resource changes. Therefore, they live in the runtime stats rather than the
72
79
// static data describing the resource.
73
- repeated Attribute attributes = 3 ;
74
-
75
- // A single key-value pair associated with a resource.
76
- message Attribute {
77
- // The key-value pair for the attribute
78
- common.Field field = 1 ;
79
- // Some values carry a unit of measurement. For example, a duration
80
- // carries an associated unit of time, such as "ms" for milliseconds.
81
- optional string unit = 2 ;
82
- }
80
+ repeated common.Attribute attributes = 3 ;
83
81
}
84
82
85
83
// A `PollOp` describes each poll operation that completes within the async
0 commit comments