Files
Bogdan DrutuandGitHub 9035c3b448 Add both bytes and items sizes to the persistent metadata (#13262)
No changelog since this is not released yet.

Signed-off-by: Bogdan Drutu <[email protected]>
2025-07-02 21:22:23 +00:00

26 lines
873 B
Protocol Buffer

syntax = "proto3";
package opentelemetry.collector.exporter.exporterhelper.internal.queue;
option go_package = "go.opentelemetry.io/collector/exporter/exporterhelper/internal/queue";
// PersistentMetadata holds all persistent metadata for the queue.
// The items and bytes sizes are recorded explicitly,
// the requests size can be calculated as (write_index - read_index + len(currently_dispatched_items)).
message PersistentMetadata{
// Current total items size of the queue.
sfixed64 items_size = 1;
// Current total bytes size of the queue.
sfixed64 bytes_size = 2;
// Index of the next item to be read from the queue.
fixed64 read_index = 3;
// Index where the next item will be written to the queue.
fixed64 write_index = 4;
// List of item indices currently being processed by consumers.
repeated fixed64 currently_dispatched_items = 5;
}