Skip to content

feat(cli): add attribute list command - #1559

Draft
lzhao-sentry wants to merge 2 commits into
mainfrom
lzhao/feat/add-attribute-list-command
Draft

lzhao-sentry wants to merge 2 commits into
mainfrom
lzhao/feat/add-attribute-list-command

Conversation

@lzhao-sentry

Copy link
Copy Markdown
Member

Changes

This PR adds a top level attribute list command to CLI as part of an effort to clean up and expose attributes for both users and agents.

Some design choices:

  • --with instead of --query. The query param for attribute API doesn't use Sentry query syntax, rather it's just searching attribute keys that appear with the queried keys on same spans, logs, etc
  • No --cursor for now as the attribute API pagination works differently from other APIs (see comments in list.ts), so it wouldn't be consistent to add pagination as is. Instead attribute filtering is encouraged with --with/--search/--type

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 20, 2026 5:24pm UTC

Request Review

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pre-emptively blocking to do a quick design review (mostly UX)

# Attributes seen on the same spans as the specified attribute
sentry attribute list --with gen_ai.request.model

# Add descriptions, example values, and deprecation info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
# Add descriptions, example values, and deprecation info
# Show descriptions, example values, and deprecation info

# Attributes seen on the same spans as the specified attribute
sentry attribute list --with gen_ai.request.model

# Add descriptions, example values, and deprecation info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
# Add descriptions, example values, and deprecation info
# Show descriptions, example values, and deprecation info

This branch was previously deployed

1 inactive deployment
Preview — 6a62b80d Deployed Oct 20, 2026 by vercel[bot]
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.

3 participants