Skip to content

Add insights query samples and query tags commands - #1333

Merged
no-itsbackpack merged 2 commits into
mainfrom
feat/insights-query-samples-and-tags
Aug 11, 2026
Merged

Add insights query samples and query tags commands#1333
no-itsbackpack merged 2 commits into
mainfrom
feat/insights-query-samples-and-tags

Conversation

@no-itsbackpack

Copy link
Copy Markdown
Contributor

Summary

  • Adds pscale insights queries samples for per-fingerprint executions (get_query_statistics), with required --keyspace and fingerprint/keyspace columns on the queries list.
  • Adds pscale insights tags / show / summaries for query-tag discovery and attribution; --tags takes UI Key-picker names (e.g. username, app) and maps to API S*/B* ids.
  • Documents the agent flow in AGENTS.md. Skips queries show / get_query_summary and per-execution get_branch_query (list already covers aggregates).

Test plan

  • Unit tests for API client + CLI (go test ./internal/planetscale/ ./internal/cmd/insights/)
  • Live read-only on prod benchmarks/beam: queries, tags, tags show, tags summaries (incl. multi --tags)
  • Samples without --keyspace rejected; with keyspace API returns empty list on beam (API-side, CLI decode OK)
  • CI green

Expose fingerprint/keyspace drill-down via queries samples, and tag list/show/summaries using UI-friendly tag names so agents can attribute load without pscale api.

Co-authored-by: Cursor <cursoragent@cursor.com>
@no-itsbackpack
no-itsbackpack requested a review from a team as a code owner August 11, 2026 20:40
Co-authored-by: Cursor <cursoragent@cursor.com>
@no-itsbackpack
no-itsbackpack merged commit b93b65c into main Aug 11, 2026
4 checks passed
@no-itsbackpack
no-itsbackpack deleted the feat/insights-query-samples-and-tags branch August 11, 2026 21:32
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.

2 participants