refactor: rename cleanup — CheckpointAdvance, sink names, OutputType variants, FormatDecoder, ZeroCopyScanner#952
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (51)
WalkthroughThis pull request performs a systematic nomenclature update across the codebase, renaming multiple public types and configuration values to improve terminology consistency. The changes include: renaming scanner implementations from Possibly related PRs
Comment |
Summary
Mechanical renames across the codebase for clarity and consistency:
CommitAdvance→CheckpointAdvance(Rename CommitAdvance → CheckpointAdvance #925)ElasticsearchAsyncSink→ElasticsearchSink,LokiAsyncSink→LokiSink,FanOut→FanoutSink(Rename output sinks: drop Async qualifier, add Sink suffix to FanOut #926)OutputType::FileOut/TcpOut/UdpOut→OutputType::File/Tcp/Udpwith backward-compat serde aliases (Rename OutputType variants: drop redundant Out suffix #927)FormatProcessor→FormatDecoder,CriAggregator→CriReassembler(Rename FormatProcessor → FormatDecoder and CriAggregator → CriReassembler #928)SimdScanner→CopyScanner,StreamingSimdScanner→ZeroCopyScanner(Rename SimdScanner → CopyScanner and StreamingSimdScanner → ZeroCopyScanner #929)Closes #925, #926, #927, #928, #929
Test plan
cargo checkpassescargo clippy -- -D warningspassescargo test --no-runcompilescargo fmtclean🤖 Generated with Claude Code
Note
Rename scanner, sink, format, and config types across the codebase
SimdScanner→CopyScannerandStreamingSimdScanner→ZeroCopyScannerin logfwd-arrow/src/scanner.rs and all call sites.ElasticsearchAsyncSink→ElasticsearchSink,LokiAsyncSink→LokiSink,FanOut/FanOutError→FanoutSink/FanoutSinkError, andFormatProcessor→FormatDecoderin their respective modules.CriAggregator→CriReassemblerin logfwd-core/src/aggregator.rs andCommitAdvance→CheckpointAdvancein logfwd-core/src/pipeline/lifecycle.rs.OutputTypevariantsFileOut/TcpOut/UdpOut→File/Tcp/Udpin logfwd-config/src/lib.rs; the deserializer accepts both old and new names as aliases.OutputType::Displaynow emits"file","tcp","udp"instead of"file_out","tcp_out","udp_out", and error messages frombuild_output_sinknow reference the shorter names.Macroscope summarized 99260b8.