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.

(cherry picked from commit c7cb900)
  • Loading branch information
samugi authored and github-actions[bot] committed Feb 1, 2024
1 parent c8930f4 commit b1a7999
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 @@ -44,7 +44,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 } },
Expand Down

0 comments on commit b1a7999

Please sign in to comment.