Background
The log puller currently enables buffering in the dynamic stream to avoid cleanup work being triggered directly from event handling.
With span cleanup deferred to the failure handler's run loop, event handling no longer needs to call back into the dynamic stream.
Proposal
Disable the dynamic stream buffer and defer drained-span cleanup to the failure handler.
Benefits
- Simplify the event-processing path.
- Remove unnecessary buffering and its associated overhead.
- Keep span cleanup outside of dynamic stream event handling.
Background
The log puller currently enables buffering in the dynamic stream to avoid cleanup work being triggered directly from event handling.
With span cleanup deferred to the failure handler's run loop, event handling no longer needs to call back into the dynamic stream.
Proposal
Disable the dynamic stream buffer and defer drained-span cleanup to the failure handler.
Benefits