Skip to content

refactor(core): remove DispatchBuilder::error_sink and align docs - #311

Merged
tisonkun merged 2 commits into
mainfrom
refactor/drop-dispatch-error-sink
Dec 1, 2026
Merged

tisonkun merged 2 commits into
mainfrom
refactor/drop-dispatch-error-sink

Conversation

@tisonkun

@tisonkun tisonkun commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Simplify ErrorSink configuration to pipeline execution roots before releasing 0.31.0 (logforth-core 0.5.0) and fix pre-release documentation errata. (Relates to #276.)

Changes

  • logforth-core:
    • Remove the unreleased DispatchBuilder::error_sink method and Dispatch's Option<Box<dyn ErrorSink>> field (narrowing Dispatch to pub(crate) and shrinking each Dispatch by two words), routing synchronous append and flush errors directly to Logger's ErrorSink while AsyncBuilder::error_sink continues to configure background worker error handling.
    • Update rustdoc on LoggerBuilder, DispatchBuilder, Logger, and ErrorSink, and update core_test::logger integration tests.
  • Documentation & Changelog:
    • Fix the prior opentelemetry / opentelemetry_sdk version in CHANGELOG.md (from 0.32.0 to 0.33.1) and remove unreleased DispatchBuilder::error_sink references.
    • Update DESIGN.md to reflect execution-root ErrorSink placement and distinguish synchronous Error routing via ErrorSink from Async background worker panic isolation.

Remove the unreleased `DispatchBuilder::error_sink` override and the
per-dispatch `Option<Box<dyn ErrorSink>>` field on `Dispatch` so runtime
error sinks are configured strictly at pipeline execution roots
(`LoggerBuilder::error_sink`, `LogStarter::error_sink`, and
`AsyncBuilder::error_sink`).

Also fix two pre-release documentation inaccuracies:
- `CHANGELOG.md`: record the prior `opentelemetry` and
  `opentelemetry_sdk` version as `0.32.0` instead of `0.31.0`, and drop
  unreleased `DispatchBuilder::error_sink` references.
- `DESIGN.md`: align configuration placement with `LoggerBuilder` +
  out-of-band executors, and distinguish synchronous `Error` routing
  from asynchronous worker panic isolation.

Signed-off-by: tison <wander4096@gmail.com>
`Dispatch` resides inside a private ancestor module tree (`mod logger`
and `mod log_impl`) and is not re-exported, so plain `pub` matches the
workspace visibility convention in `AGENTS.md`.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
tisonkun merged commit e0ea34e into main Dec 1, 2026
@tisonkun
tisonkun deleted the refactor/drop-dispatch-error-sink branch December 1, 2026 01:28
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