-
Notifications
You must be signed in to change notification settings - Fork 495
Improve control plane logging #6003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
15628f2 to
2ada9e0
Compare
2ada9e0 to
9e31b68
Compare
|
|
||
| struct SequencePrettyDisplay<I>(I); | ||
|
|
||
| impl<I> fmt::Display for SequencePrettyDisplay<I> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code is similar enough to PrettySample that i wonder if SequencePrettyDisplay shouldn't just contain a PrettySample(_, u64::MAX)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PrettySample relies on Debug whereas for PrettyDisplay I really want to be able to use something other than Debug or Display.
quickwit/quickwit-control-plane/src/ingest/ingest_controller.rs
Outdated
Show resolved
Hide resolved
| return json!({ | ||
| "status": "initializing", | ||
| "shards": [], | ||
| "shards": {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(not for this PR): this kind of change can easily be wrong (as in not all codepath were updated), in the future i think we want a debug_info_internal which returns a struct, and use serde_json::to_value to generate the type-erased value inside debug_info()
3fd830c to
3c2d3ca
Compare
Description
Adding some logging statements and updating the formatting to be less noisy
How was this PR tested?
make test-all