Skip to content

Commit

Permalink
perf(opentelemetry): increase max batch size (#12488)
Browse files Browse the repository at this point in the history
The max batch size for Opentelemetry was set to the default value: 1
the value actually refers to the number of spans in a batch, so we are
increasing the default value to 200 which corresponds to what the
default value used to be with the "old" queue implementation.
  • Loading branch information
samugi authored and hanshuebner committed Feb 5, 2024
1 parent 2ea793a commit 29bf6e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "**Opentelemetry**: increase queue max batch size to 200"
type: performance
scope: Plugin
6 changes: 5 additions & 1 deletion kong/plugins/opentelemetry/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
Expand Down

0 comments on commit 29bf6e4

Please sign in to comment.