-
Notifications
You must be signed in to change notification settings - Fork 58
oximeter: clean up query summary logic and docs. #9184
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
jmcarp
commented
Oct 9, 2025
- Convert query summaries lazily; h/t @david-crespo.
- Drop query summaries from user-facing docs; h/t @ahl. This feature is only useful for Oxide engineers to investigate oximeter performance, and we don't want to leak implementation details into public docs.
* Convert query summaries lazily; h/t @david-crespo. * Drop query summaries from user-facing docs; h/t @ahl. This feature is only useful for Oxide engineers to investigate oximeter performance, and we don't want to leak implementation details into public docs.
080f598
to
23d896c
Compare
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 looks good with the very significant caveat that I don't understand how we intend to use it or for it to be used.
pub query: String, | ||
/// Whether to include ClickHouse query summaries in the response. | ||
/// Whether to include query summaries in the response. Note: we omit this | ||
//field from the generated docs, since it's mainly of interest internally. |
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.
//field from the generated docs, since it's mainly of interest internally. | |
/// field from the generated docs, since it is not intended for consumption by customers. |
} | ||
|
||
/// Basic metadata about the resource usage of a single ClickHouse SQL query. | ||
/// Basic metadata about the resource usage of a single backend query. |
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.
/// Basic metadata about the resource usage of a single backend query. | |
/// Basic metadata about the resource usage of a query. |
pub tables: Vec<OxqlTable>, | ||
/// Summaries of queries run against ClickHouse. | ||
/// Summaries of queries run against ClickHouse. Note: we omit this field | ||
//from the generated docs, since it's mainly of interest internally. |
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.
I like skipping it. Didn't realize it was aimed at internal users. We might need to think about this kind of thing more broadly — I can't think of any other spots we hide a field in the OpenAPI schema for this purpose. Would be good to have a sort of policy or rule of thumb about when it's appropriate in order to avoid doing it too much. |