File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
exporter/exporterhelper/internal/queue Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ enum SizerType {
11
11
BYTES = 2 ;
12
12
}
13
13
14
- // QueueMetadata holds all persistent metadata for the queue.
15
- message QueueMetadata {
16
- // Sizer type configuration.
17
- SizerType sizer_type = 1 ;
18
-
19
- // Current total size of the queue (in bytes, items, or requests).
20
- sfixed64 queue_size = 2 ;
14
+ // PersistentMetadata holds all persistent metadata for the queue.
15
+ // The items and bytes sizes are recorded explicitly, the requests size can be calculated as (write_index - read_index).
16
+ message PersistentMetadata {
17
+ // Current total items size of the queue.
18
+ sfixed64 items_size = 1 ;
19
+
20
+ // Current total bytes size of the queue.
21
+ sfixed64 bytes_size = 2 ;
21
22
22
23
// Index of the next item to be read from the queue.
23
24
fixed64 read_index = 3 ;
You can’t perform that action at this time.
0 commit comments