Undelivered events now carry over when the remote bridge rebuilds its connection.
What's wrong with this entry?
When the remote bridge rebuilds its connection, for example after refreshing credentials, events that were queued but never delivered are now carried over to the new connection instead of being thrown away. It logs "[remote-bridge] Carrying N undelivered client event(s) over to the rebuilt transport". This is unconditional on the bridge path, with no flag to turn it off.
- The uploader's close now accepts a retain option, keeping in-flight plus pending items in an undelivered list capped at the same maximum queue size, with take/peek/discard accessors.
- Carry-overs are counted by the telemetry event
tengu_bridge_repl_events_carried_over; events lost at a terminal failure are counted bybridge_repl_v2_client_events_lost. - Enqueuing a batch larger than the maximum queue size now splits it into chunks instead of stalling on backpressure.
tengu_bridge_repl_events_carried_over, retainUndelivered: !0
Strings lifted out of the shipped bundle, so the claim above can be checked against them.