Repository navigation
feat(aivision): add storage-side trace pagination endpoint - #8
Merged
Merged
Conversation
- Add GET /traces/page route to the AI vision API server and handler interface. - Add AgentUUID to native trace list params to support filtering by agent identity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to ob-labs/ai-vision-ob#67. Companion change for AI Vision trace list pagination.
Add
GET /api/v1/ai-vision/traces/page. A single OceanBase SQL statement performs trace-level filtering, stable sorting, pagination, total counting, and facet aggregation, returning complete spans only for the requested page. This removes the need for callers to fetch every trace in the time window individually.Changes
native-trace-page-v1contract, with page data, totals, and facets computed from the same query snapshot.supported:falseresponses for unsupported queries so callers can select a compatibility path.Validation
go test ./pkg/modules/aivision ./pkg/apiserver/signozapiserver.Boundaries
The endpoint supports OceanBase, with a maximum of 200 traces per page. Individual traces remain subject to the span-count limit. Separate page requests may observe subsequent ingestion; completeness describes the current page and statistics computed by the same statement.
Deploy this endpoint before upgrading the AI Vision caller.