| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package opentelemetry.collector.exporter.exporterhelper.internal.queue; |
| 4 |
|
| 5 |
option go_package = "go.opentelemetry.io/collector/exporter/exporterhelper/internal/queue"; |
| 6 |
|
| 7 |
// PersistentMetadata holds all persistent metadata for the queue. |
| 8 |
// The items and bytes sizes are recorded explicitly, |
| 9 |
// the requests size can be calculated as (write_index - read_index + len(currently_dispatched_items)). |
| 10 |
message PersistentMetadata{ |
| 11 |
// Current total items size of the queue. |
| 12 |
sfixed64 items_size = 1; |
| 13 |
|
| 14 |
// Current total bytes size of the queue. |
| 15 |
sfixed64 bytes_size = 2; |
| 16 |
|
| 17 |
// Index of the next item to be read from the queue. |
| 18 |
fixed64 read_index = 3; |
| 19 |
|
| 20 |
// Index where the next item will be written to the queue. |
| 21 |
fixed64 write_index = 4; |
| 22 |
|
| 23 |
// List of item indices currently being processed by consumers. |
| 24 |
repeated fixed64 currently_dispatched_items = 5; |
| 25 |
} |