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 26e3be2a9a01..2f2552c4a2f5 100644 --- a/kong/plugins/opentelemetry/schema.lua +++ b/kong/plugins/opentelemetry/schema.lua @@ -47,7 +47,11 @@ return { { resource_attributes = resource_attributes }, { batch_span_count = { type = "integer" } }, { batch_flush_delay = { type = "integer" } }, - { queue = typedefs.queue }, + { queue = typedefs.queue { + default = { + max_batch_size = 200, + }, + } }, { connect_timeout = typedefs.timeout { default = 1000 } }, { send_timeout = typedefs.timeout { default = 5000 } }, { read_timeout = typedefs.timeout { default = 5000 } },