Skip to content

Conversation

@guilload
Copy link
Member

@guilload guilload commented Dec 1, 2025

Description

Adding some logging statements and updating the formatting to be less noisy

How was this PR tested?

make test-all

@guilload guilload force-pushed the guilload/improve-control-plane-logging-and-metrics branch from 15628f2 to 2ada9e0 Compare December 1, 2025 22:19
@guilload guilload marked this pull request as ready for review December 1, 2025 22:24
@guilload guilload force-pushed the guilload/improve-control-plane-logging-and-metrics branch from 2ada9e0 to 9e31b68 Compare December 1, 2025 22:28

struct SequencePrettyDisplay<I>(I);

impl<I> fmt::Display for SequencePrettyDisplay<I>
Copy link
Contributor

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)

Copy link
Member Author

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.

return json!({
"status": "initializing",
"shards": [],
"shards": {},
Copy link
Contributor

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()

@guilload guilload force-pushed the guilload/improve-control-plane-logging-and-metrics branch from 3fd830c to 3c2d3ca Compare December 2, 2025 18:11
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.

3 participants