Repository navigation
refactor(core): remove DispatchBuilder::error_sink and align docs - #311
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Simplify
ErrorSinkconfiguration to pipeline execution roots before releasing0.31.0(logforth-core 0.5.0) and fix pre-release documentation errata. (Relates to #276.)Changes
logforth-core:DispatchBuilder::error_sinkmethod andDispatch'sOption<Box<dyn ErrorSink>>field (narrowingDispatchtopub(crate)and shrinking eachDispatchby two words), routing synchronous append and flush errors directly toLogger'sErrorSinkwhileAsyncBuilder::error_sinkcontinues to configure background worker error handling.LoggerBuilder,DispatchBuilder,Logger, andErrorSink, and updatecore_test::loggerintegration tests.opentelemetry/opentelemetry_sdkversion inCHANGELOG.md(from 0.32.0 to 0.33.1) and remove unreleasedDispatchBuilder::error_sinkreferences.DESIGN.mdto reflect execution-rootErrorSinkplacement and distinguish synchronousErrorrouting viaErrorSinkfromAsyncbackground worker panic isolation.