Skip to content

feat: Streamline SDK flushing - #2490

Merged
Luca Forstner (lforst) merged 4 commits into
mainfrom
lforst/dum-e/athens-db74d42b4e
Sep 17, 2026
Merged

Luca Forstner (lforst) merged 4 commits into
mainfrom
lforst/dum-e/athens-db74d42b4e

Conversation

@lforst

@lforst Luca Forstner (lforst) commented Sep 16, 2026

Copy link
Copy Markdown
Member
  • Makes flush() wait for all events queued before it was called, without being delayed by events added afterward.
  • Ensures overlapping flush() calls also wait for any earlier events that are still being sent.
  • Limits outbound log requests to 8 concurrent requests by default, configurable with BRAINTRUST_MAX_CONCURRENT_LOG_REQUESTS.
  • Discards failed batches without rejecting flush() and continues processing newer queued events so they cannot become stranded.

@lforst
Luca Forstner (lforst) merged commit 17cca2a into main Sep 17, 2026
102 of 104 checks passed
@lforst
Luca Forstner (lforst) deleted the lforst/dum-e/athens-db74d42b4e branch September 17, 2026 08:32
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.

2 participants