diff --git a/changelog/unreleased/kong/otel-increase-queue-max-batch-size.yml b/changelog/unreleased/kong/otel-increase-queue-max-batch-size.yml new file mode 100644 index 000000000000..6936adcf7615 --- /dev/null +++ b/changelog/unreleased/kong/otel-increase-queue-max-batch-size.yml @@ -0,0 +1,3 @@ +message: "**Opentelemetry**: increase queue max batch size to 200" +type: performance +scope: Plugin diff --git a/kong/plugins/opentelemetry/schema.lua b/kong/plugins/opentelemetry/schema.lua index 4601703163dd..85d8f4c1834a 100644 --- a/kong/plugins/opentelemetry/schema.lua +++ b/kong/plugins/opentelemetry/schema.lua @@ -45,7 +45,11 @@ return { }, } }, { resource_attributes = resource_attributes }, - { queue = typedefs.queue }, + { queue = typedefs.queue { + default = { + max_batch_size = 200, + }, + } }, { batch_span_count = { description = "The number of spans to be sent in a single batch.", type = "integer" } }, { batch_flush_delay = { description = "The delay, in seconds, between two consecutive batches.", type = "integer" } }, { connect_timeout = typedefs.timeout { default = 1000 } },