Skip to content

feat: Event queue early stop in buffer overflow#118

Merged
abelonogov-ld merged 4 commits intomainfrom
andrey/event-queue-early-stop
Jan 15, 2026
Merged

feat: Event queue early stop in buffer overflow#118
abelonogov-ld merged 4 commits intomainfrom
andrey/event-queue-early-stop

Conversation

@abelonogov-ld
Copy link
Copy Markdown
Contributor

@abelonogov-ld abelonogov-ld commented Jan 15, 2026

  • drop events early (optimization)
  • rethrow initialization error (fix oflline)

Note

Optimizes event batching and improves error handling.

  • In EventQueue, introduce SendResult and change batch send([payloads]) to early-stop on total buffer overflow and skip further items for exporters that hit per-exporter limits; send(_:) now returns a result and triggers overflow notifications before stopping.
  • In SessionReplayExporter, rethrow initialization errors after logging so callers can handle failures.

Written by Cursor Bugbot for commit f8ae091. This will update automatically on new commits. Configure here.

@abelonogov-ld abelonogov-ld enabled auto-merge (squash) January 15, 2026 22:16
@abelonogov-ld abelonogov-ld enabled auto-merge (squash) January 15, 2026 22:17
@abelonogov-ld abelonogov-ld merged commit 4be2201 into main Jan 15, 2026
5 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/event-queue-early-stop branch January 15, 2026 22:25
abelonogov-ld pushed a commit that referenced this pull request Jan 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.17.0](0.16.0...0.17.0)
(2026-01-16)


### Features

* Add diagnostic of service version starting
([#119](#119))
([8264275](8264275))
* Event queue early stop in buffer overflow
([#118](#118))
([4be2201](4be2201))
* SR manual start/stop
([#124](#124))
([c4e1afb](c4e1afb))


### Bug Fixes

* crash reporting with kscrash not captured
([#122](#122))
([88e97f9](88e97f9))
* observability instance already exists
([#121](#121))
([8a03120](8a03120))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Release 0.17.0**
> 
> - Adds diagnostic of service version at start, event queue early stop
on buffer overflow, and Session Replay manual start/stop
> - Fixes KSCrash reports not captured and "observability instance
already exists" error
> - Bumps version to `0.17.0` in `CHANGELOG.md`,
`.release-please-manifest.json`, podspecs, and
`Sources/LaunchDarklyObservability/Version.swift`
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d5a714b. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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