Skip to content

[adapters] Make /stats query parameters public.#6704

Open
blp wants to merge 1 commit into
mainfrom
publish-stats-params
Open

[adapters] Make /stats query parameters public.#6704
blp wants to merge 1 commit into
mainfrom
publish-stats-params

Conversation

@blp

@blp blp commented Jul 22, 2026

Copy link
Copy Markdown
Member

This makes it easier for other code to use these parameters.

@blp
blp requested a review from swanandx July 22, 2026 23:40
@blp blp self-assigned this Jul 22, 2026
@blp blp added the API Distributed system APIs label Jul 22, 2026
This makes it easier for other code to use these parameters.

Signed-off-by: Ben Pfaff <blp@feldera.com>
@blp
blp force-pushed the publish-stats-params branch from 8a76280 to c17d53d Compare July 22, 2026 23:48

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Straightforward hoist of StatsParams from crates/adapters/src/server.rs into feldera-types::query_params next to the other endpoint params (ActivateParams, ApproveParameters, MetricsParameters, SamplyProfileParams). Doc comment preserved verbatim, #[serde(default)] preserved, field made pub, and Serialize added — the other public param structs in that module all derive Serialize too, so this is consistent.

The support-bundle collector wanting to construct these outside server.rs is exactly the shape of refactor that belongs in feldera-types. LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Distributed system APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants