Skip to content

feat(core): integrate RetryManager into SegmentDestination upload pipeline#1160

Open
abueide wants to merge 1 commit intotapi/retry-manager-testsfrom
tapi/segment-destination
Open

feat(core): integrate RetryManager into SegmentDestination upload pipeline#1160
abueide wants to merge 1 commit intotapi/retry-manager-testsfrom
tapi/segment-destination

Conversation

@abueide
Copy link
Contributor

@abueide abueide commented Mar 10, 2026

Summary

  • Wire RetryManager into SegmentDestination for TAPI-compliant retry handling
  • Add uploadBatch() method with error classification, retry-after parsing, and configurable retry behavior
  • Implement event pruning on partial failures to avoid re-sending successful events
  • Add retry count header (X-Retry-Count) propagation to API requests
  • Update QueueFlushingPlugin error type handling for retry vs permanent errors
  • Add comprehensive tests for pruning logic, retry integration, and API retry count

PR 5 of 5 in the TAPI backoff/retry stack. Depends on #1159.

Test plan

  • npx jest --testPathPattern="SegmentDestination|QueueFlushingPlugin|api.test" — 42 tests pass
  • npx tsc --noEmit — no type errors
  • npx eslint — 0 errors

🤖 Generated with Claude Code

…eline

Wire RetryManager into SegmentDestination for TAPI-compliant retry
handling: uploadBatch() with error classification, event pruning on
partial failures, retry count header propagation, and QueueFlushingPlugin
error type handling updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant