Let's make queuedMaxSpans a function of messageMaxBytes, instead of an arbitrary default.
Rationale
This will better manage the queue backlog, allowing people to use a higher messageTimeout than 1s, but still clear the queue faster when under pressure.
Example Scenario
A small json span will reach the default 500,000 byte limit by about 1500 spans. A typical one will reach much sooner (typical e.g. sleuth/micrometer which adds more than one tag, and possibly a remote endpoint).
Feature
Let's make
queuedMaxSpans
a function ofmessageMaxBytes
, instead of an arbitrary default.Rationale
This will better manage the queue backlog, allowing people to use a higher
messageTimeout
than 1s, but still clear the queue faster when under pressure.Example Scenario
A small json span will reach the default 500,000 byte limit by about 1500 spans. A typical one will reach much sooner (typical e.g. sleuth/micrometer which adds more than one tag, and possibly a remote endpoint).
Prior Art