Skip to content

Conversation

@tisonkun
Copy link
Member

dashmap = "6.1.0"
rust_decimal = "1"
ordered-float = { version = "4", features = ["serde"] }
ordered-float = { version = "5", features = ["serde"] }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hash format changed. But I think we're yet to rely on it.

@tisonkun tisonkun force-pushed the tracing-to-log branch 3 times, most recently from feae500 to 35b4b40 Compare December 15, 2025 03:54
Signed-off-by: tison <wander4096@gmail.com>
Comment on lines +180 to +183
Err(err) => {
log::warn!(
"Cannot read message header, ignoring message: {err:?}"
);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err in kv is not good for text searching. I experienced this when sending logs to otel backend ..

Comment on lines 100 to 102
pub trait FileRead: Send + Unpin + 'static {
async fn read(&self, range: Range<u64>) -> Result<Bytes>;
fn read(&self, range: Range<u64>) -> impl Future<Output = Result<Bytes>> + Send;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the logging infrastructure from the tracing crate to the log crate, motivated by performance considerations and compatibility with the fastrace distributed tracing approach. The change also includes dependency updates (prost 0.13→0.14, thiserror 1.0→2, ordered-float 4→5) and removes the async-trait dependency in favor of native Rust async trait syntax.

Key changes:

  • Replaces all tracing::warn! calls with log::warn! and adds the log crate with kv_std feature
  • Removes async-trait macro and converts the FileRead trait to use native impl Future return types
  • Updates several dependencies to their latest major versions

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
crates/fluss/Cargo.toml Adds log crate, removes tracing and async-trait, updates prost, thiserror, and ordered-float to latest versions
crates/fluss/src/util/mod.rs Converts tracing::warn! to log::warn! in file deletion error handling
crates/fluss/src/rpc/server_connection.rs Converts tracing::warn! calls to log::warn!, but contains invalid log macro syntax
crates/fluss/src/client/write/broadcast.rs Converts tracing::warn! to log::warn! in BroadcastOnce drop handler
crates/fluss/src/io/file_io.rs Removes #[async_trait::async_trait] and converts trait to use native async syntax, but missing Future import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tisonkun Thanks for the pr. LGTM. Looking forward to more valuable inputs from you -Rust expert!

@luoyuxia luoyuxia merged commit 58a842d into main Dec 15, 2025
19 checks passed
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