Skip to content

Commit d4fe314

Browse files
committed
feat(intake): regenerate the SDK for the span group time sort
Adding started_at to SpanGroup and to the sort enum changed the published contract, so the checked-in SDK and CLI went stale and CI's sync check failed. Regenerating gives SpanGroup a started_at field, widens SpanGroupSortField to include started_at and -started_at, and carries the sort guidance into both CLIs and the reference docs. Signed-off-by: Alec Khoury <akhoury@nvidia.com>
1 parent a9f7e94 commit d4fe314

9 files changed

Lines changed: 54 additions & 5 deletions

File tree

docs/cli/reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6955,7 +6955,7 @@ nemo intake spans groups list [OPTIONS]
69556955
* `--by`: Comma-separated span fields to group by, e.g.
69566956
* `--page <INTEGER>`: Page number.
69576957
* `--page-size <INTEGER>`: Page size.
6958-
* `--sort <CHOICE>`: [possible values: span_count, -span_count]
6958+
* `--sort <CHOICE>`: Sort groups by size or by time. Use -started_at to get the most recent traces or sessions first, which answers 'what ran lately' in one call instead of paging through spans. [possible values: span_count, -span_count, started_at, -started_at]
69596959
* `--all-pages`: Fetch all pages
69606960

69616961
**Filter Options:**

packages/nemo_platform_ext/src/nemo_platform_ext/cli/commands/api/intake/spans/groups.py

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/nemo-platform/.nmpcontext/openapi.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/nemo-platform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/nemo-platform/src/nemo_platform/cli/commands/api/intake/spans/groups.py

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/nemo-platform/src/nemo_platform/resources/intake/spans/groups.py

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/nemo-platform/src/nemo_platform/types/intake/spans/group_list_params.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/nemo-platform/src/nemo_platform/types/intake/spans/span_group.py

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/nemo-platform/src/nemo_platform/types/intake/spans/span_group_sort_field.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)