Zipkin Reporter 3.4 deprecates AsyncReporter/SpanHandler
queuedMaxBytes
and disables it by default.
When introduced, AsyncReporter
had three ways to trigger a queue flush:
queuedMaxSpans
- when the number of spans in the queue exceeds a thresholdqueuedMaxBytes
- when the size of the spans in the queue exceeds a thresholdmessageTimeout
- when a span has been in the queue longer than a threshold
queuedMaxBytes
was deprecated because requires time in the critical path, to calculate the size of a span to make sure it doesn't breach the threshold. This is problematic in tools that check for pinning, like Virtual Threads.
Thanks a lot to @reta for sorting this out!
Full Changelog: https://github.com/openzipkin/zipkin-reporter-java/compare/3.3.0..3.4.1